Skip to content

Commit

Permalink
Make RecursiveIterator generic
Browse files Browse the repository at this point in the history
This reverts commit aa92b5b.
  • Loading branch information
ondrejmirtes committed Mar 18, 2021
1 parent b51a26f commit 82596f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stubs/iterable.stub
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ interface Iterator extends Traversable
}

/**
* @extends Iterator<mixed, mixed>
* @template-covariant TKey
* @template-covariant TValue
*
* @extends Iterator<TKey, TValue>
*/
interface RecursiveIterator extends Iterator
{
Expand Down Expand Up @@ -81,6 +84,7 @@ class Generator implements Iterator
* @implements Traversable<mixed, mixed>
* @implements ArrayAccess<mixed, mixed>
* @implements Iterator<mixed, mixed>
* @implements RecursiveIterator<mixed, mixed>
*/
class SimpleXMLElement implements Traversable, ArrayAccess, Iterator, RecursiveIterator
{
Expand Down

0 comments on commit 82596f5

Please sign in to comment.