Skip to content

Commit

Permalink
fix iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 23, 2022
1 parent 0bd05d5 commit 46f45e4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions stubs/CoreGenericIterators.phpstub
Expand Up @@ -134,7 +134,7 @@ class IteratorIterator implements OuterIterator {
* @template TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue>
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class AppendIterator extends IteratorIterator {
public function __construct(){}
Expand Down Expand Up @@ -341,11 +341,12 @@ class FilterIterator extends IteratorIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-implements OuterIterator<TKey, TValue>
* @template-implements ArrayAccess<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue>
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class CachingIterator extends IteratorIterator implements OuterIterator , ArrayAccess , Countable {
const CALL_TOSTRING = 1 ;
Expand Down Expand Up @@ -529,8 +530,9 @@ class GlobIterator extends FilesystemIterator implements Countable {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue>
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class InfiniteIterator extends IteratorIterator {
/**
Expand All @@ -554,10 +556,11 @@ class InfiniteIterator extends IteratorIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-implements OuterIterator<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue>
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class LimitIterator extends IteratorIterator implements OuterIterator {
/**
Expand All @@ -583,8 +586,9 @@ class LimitIterator extends IteratorIterator implements OuterIterator {
/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue>
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class NoRewindIterator extends IteratorIterator {
/**
Expand Down

0 comments on commit 46f45e4

Please sign in to comment.