1
0
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:
orklah 2022-10-31 17:33:12 +01:00 committed by GitHub
commit 41e870baa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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