Skip to content

Commit c5f4c3b

Browse files
jdecoolondrejmirtes
authored andcommitted
Add FilterIterator stub
1 parent 2159057 commit c5f4c3b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

conf/config.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ parameters:
2424
disableRuntimeReflectionProvider: false
2525
skipCheckGenericClasses:
2626
- DatePeriod
27+
- FilterIterator
2728
fileExtensions:
2829
- php
2930
checkAdvancedIsset: false

stubs/iterable.stub

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ class IteratorIterator implements OuterIterator {
193193
public function __construct(Traversable $iterator) {}
194194
}
195195

196+
/**
197+
* @template-covariant TKey
198+
* @template-covariant TValue
199+
* @template TIterator as Traversable<TKey, TValue>
200+
*
201+
* @template-extends IteratorIterator<TKey, TValue, TIterator>
202+
*/
203+
class FilterIterator extends IteratorIterator
204+
{
205+
206+
}
207+
196208
/**
197209
* @template TKey of array-key
198210
* @template TValue

0 commit comments

Comments
 (0)