Skip to content

Commit

Permalink
Add RecursiveCallbackFilterIterator 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 868720e commit 86a63ff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.neon
Expand Up @@ -26,6 +26,7 @@ parameters:
- DatePeriod
- CallbackFilterIterator
- FilterIterator
- RecursiveCallbackFilterIterator
fileExtensions:
- php
checkAdvancedIsset: false
Expand Down
23 changes: 23 additions & 0 deletions stubs/iterable.stub
Expand Up @@ -217,6 +217,29 @@ class CallbackFilterIterator extends FilterIterator

}


/**
* @template-covariant TKey
* @template-covariant TValue
* @template TIterator as Traversable<TKey, TValue>
*
* @extends CallbackFilterIterator<TKey, TValue, TIterator>
* @implements RecursiveIterator<TKey, TValue>
*/
class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator
{
/**
* @return bool
*/
public function hasChildren() {}

/**
* @return RecursiveCallbackFilterIterator<TKey, TValue, TIterator>
*/
public function getChildren() {}

}

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

0 comments on commit 86a63ff

Please sign in to comment.