Skip to content

Commit

Permalink
Add ReturnTypeWillChange for PHP 8.1
Browse files Browse the repository at this point in the history
split: 9dcb857bef090f3bc4d60e9fb64dba4b4461cbb2
  • Loading branch information
kylekatarnls committed Nov 11, 2021
1 parent 18df57c commit 8e49ad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Util/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Generator;
use IteratorAggregate;
use ReturnTypeWillChange;
use Traversable;

class Collection implements IteratorAggregate
Expand Down Expand Up @@ -51,6 +52,7 @@ public static function makeIterable($value)
*
* @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
*/
#[ReturnTypeWillChange]
public function getIterator()
{
return $this->traversable instanceof Traversable ? $this->traversable : $this->getGenerator();
Expand Down

0 comments on commit 8e49ad0

Please sign in to comment.