From 5668417846e81925086ed03b21212c4ef27eadbd Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 9 Dec 2024 11:45:05 +0000 Subject: [PATCH] Properly declare return type --- src/Cookies/Cookie.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Cookies/Cookie.php b/src/Cookies/Cookie.php index 3aeb20c..a63baf0 100644 --- a/src/Cookies/Cookie.php +++ b/src/Cookies/Cookie.php @@ -103,8 +103,7 @@ public static function create($name, $value, array $params = []) return new self($params); } - #[\ReturnTypeWillChange] - public function getIterator() + public function getIterator(): ArrayIterator { return new \ArrayIterator($this->data); }