mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Merge pull request #8639 from hamburnyog/fix-issue-8631
Fix for issue #8631
This commit is contained in:
commit
41e870baa9
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user