Skip to content

Commit

Permalink
Add FilterIterator stub
Browse files Browse the repository at this point in the history
  • Loading branch information
jdecool authored and ondrejmirtes committed Feb 8, 2022
1 parent 2159057 commit c5f4c3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.neon
Expand Up @@ -24,6 +24,7 @@ parameters:
disableRuntimeReflectionProvider: false
skipCheckGenericClasses:
- DatePeriod
- FilterIterator
fileExtensions:
- php
checkAdvancedIsset: false
Expand Down
12 changes: 12 additions & 0 deletions stubs/iterable.stub
Expand Up @@ -193,6 +193,18 @@ class IteratorIterator implements OuterIterator {
public function __construct(Traversable $iterator) {}
}

/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @template-extends IteratorIterator<TKey, TValue, TIterator>
*/
class FilterIterator extends IteratorIterator
{

}

/**
* @template TKey of array-key
* @template TValue
Expand Down

0 comments on commit c5f4c3b

Please sign in to comment.