From 84dc4b3414657dfccdde6c405fceaa08430170bf Mon Sep 17 00:00:00 2001 From: Konstantinos Kokkorogiannis Date: Thu, 30 Nov 2023 15:18:30 +0200 Subject: [PATCH] Traversable is available on the root namespace, not where we are --- src/OowpQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OowpQuery.php b/src/OowpQuery.php index ad32d4e..8c4d041 100644 --- a/src/OowpQuery.php +++ b/src/OowpQuery.php @@ -40,7 +40,7 @@ function __construct($query = '') /* Interfaces */ - public function getIterator(): Traversable + public function getIterator(): \Traversable { return new \ArrayIterator($this->posts); }