From eb11804cde7375641f437d63e45f235f3f084583 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Wed, 18 Aug 2021 11:04:16 +0800 Subject: [PATCH] Make CookieStore compatible with IteratorAggregate::getIterator --- system/Cookie/CookieStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Cookie/CookieStore.php b/system/Cookie/CookieStore.php index 8ef45c970f59..87dc472d1fe5 100644 --- a/system/Cookie/CookieStore.php +++ b/system/Cookie/CookieStore.php @@ -207,7 +207,7 @@ public function count(): int * * @return Traversable */ - public function getIterator() + public function getIterator(): Traversable { return new ArrayIterator($this->cookies); }