Skip to content

Commit 82596f5

Browse files
committed
Make RecursiveIterator generic
This reverts commit aa92b5b.
1 parent b51a26f commit 82596f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stubs/iterable.stub

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ interface Iterator extends Traversable
4646
}
4747

4848
/**
49-
* @extends Iterator<mixed, mixed>
49+
* @template-covariant TKey
50+
* @template-covariant TValue
51+
*
52+
* @extends Iterator<TKey, TValue>
5053
*/
5154
interface RecursiveIterator extends Iterator
5255
{
@@ -81,6 +84,7 @@ class Generator implements Iterator
8184
* @implements Traversable<mixed, mixed>
8285
* @implements ArrayAccess<mixed, mixed>
8386
* @implements Iterator<mixed, mixed>
87+
* @implements RecursiveIterator<mixed, mixed>
8488
*/
8589
class SimpleXMLElement implements Traversable, ArrayAccess, Iterator, RecursiveIterator
8690
{

0 commit comments

Comments
 (0)