Skip to content

Commit

Permalink
Merge pull request #24 from expresso-virtual/main
Browse files Browse the repository at this point in the history
Fix deprecation notice on PHP 8.1
  • Loading branch information
heiglandreas authored May 31, 2023
2 parents 7830e09 + ec99128 commit dd7d936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IteratorImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit dd7d936

Please sign in to comment.