From 49e2b08ca025ebaf87a904b5645f535c807b6f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Wed, 6 Oct 2021 20:43:17 +0200 Subject: [PATCH] Fix PHP 8.1 deprecation errors --- src/MapIterator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MapIterator.php b/src/MapIterator.php index 84a20b57..ce042eff 100644 --- a/src/MapIterator.php +++ b/src/MapIterator.php @@ -42,6 +42,7 @@ public function __construct(Traversable $iterator, callable $callable) /** * @return mixed The value of the current element. */ + #[\ReturnTypeWillChange] public function current() { return ($this->callable)(parent::current(), parent::key());