diff --git a/src/IteratorImplementation.php b/src/IteratorImplementation.php index ebbce1f..725d5f0 100644 --- a/src/IteratorImplementation.php +++ b/src/IteratorImplementation.php @@ -13,26 +13,31 @@ trait IteratorImplementation { abstract public function &getList() : array; + #[\ReturnTypeWillChange] public function current() { return current($this->getList()); } + #[\ReturnTypeWillChange] public function next() { next($this->getList()); } + #[\ReturnTypeWillChange] public function key() { return key($this->getList()); } + #[\ReturnTypeWillChange] public function valid() { return false === key($this->getList()); } + #[\ReturnTypeWillChange] public function rewind() { return reset($this->getList());