Skip to content

Commit

Permalink
fix: add #[\ReturnTypeWillChange] for php8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AlucardleVash committed Mar 13, 2024
1 parent 5288d6d commit 3ff45ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Porpaginas/Arrays/ArrayResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function take($offset, $limit)
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->data);
Expand All @@ -54,6 +55,7 @@ public function count()
*
* @return Iterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->data);
Expand Down

0 comments on commit 3ff45ab

Please sign in to comment.