Skip to content

Commit 86a63ff

Browse files
jdecoolondrejmirtes
authored andcommitted
Add RecursiveCallbackFilterIterator stub
1 parent 868720e commit 86a63ff

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

conf/config.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ parameters:
2626
- DatePeriod
2727
- CallbackFilterIterator
2828
- FilterIterator
29+
- RecursiveCallbackFilterIterator
2930
fileExtensions:
3031
- php
3132
checkAdvancedIsset: false

stubs/iterable.stub

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,29 @@ class CallbackFilterIterator extends FilterIterator
217217

218218
}
219219

220+
221+
/**
222+
* @template-covariant TKey
223+
* @template-covariant TValue
224+
* @template TIterator as Traversable<TKey, TValue>
225+
*
226+
* @extends CallbackFilterIterator<TKey, TValue, TIterator>
227+
* @implements RecursiveIterator<TKey, TValue>
228+
*/
229+
class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator
230+
{
231+
/**
232+
* @return bool
233+
*/
234+
public function hasChildren() {}
235+
236+
/**
237+
* @return RecursiveCallbackFilterIterator<TKey, TValue, TIterator>
238+
*/
239+
public function getChildren() {}
240+
241+
}
242+
220243
/**
221244
* @template TKey of array-key
222245
* @template TValue

0 commit comments

Comments
 (0)