Skip to content

Commit

Permalink
Fix deprecation notice on PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
expresso-virtual authored Sep 4, 2022
1 parent 7830e09 commit ec99128
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 ec99128

Please sign in to comment.