Skip to content

Commit

Permalink
Merge pull request #8639 from hamburnyog/fix-issue-8631
Browse files Browse the repository at this point in the history
Fix for issue #8631
  • Loading branch information
orklah committed Oct 31, 2022
2 parents b739b67 + 77b3962 commit 41e870b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/CoreGenericIterators.phpstub
Expand Up @@ -353,7 +353,7 @@ class CachingIterator extends IteratorIterator implements OuterIterator , ArrayA
const TOSTRING_USE_CURRENT = 4 ;
const TOSTRING_USE_INNER = 8 ;
const FULL_CACHE = 256 ;

/**
* @param Iterator<TKey, TValue> $iterator
* @param int-mask-of<self::*> $flags
Expand Down Expand Up @@ -561,7 +561,7 @@ class LimitIterator extends IteratorIterator implements OuterIterator {
/**
* @param Iterator<TKey, TValue> $iterator
*/
public function __construct(Iterator $iterator, int $offset = 0, int $count = -1) {}
public function __construct(Iterator $iterator, int $offset = 0, int $limit = -1) {}

/**
* @return TValue|null current value or null when iterator is drained
Expand Down

0 comments on commit 41e870b

Please sign in to comment.