Skip to content

Commit 74d4708

Browse files
committed
Updated stub
1 parent b58b8c5 commit 74d4708

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

stubs/iterable.stub

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ interface Iterator extends Traversable
4545

4646
}
4747

48+
/**
49+
* @template-covariant TKey
50+
* @template-covariant TValue
51+
*
52+
* @extends Iterator<TKey, TValue>
53+
*/
54+
interface RecursiveIterator extends Iterator
55+
{
56+
57+
}
58+
4859
/**
4960
* @template-covariant TKey
5061
* @template-covariant TValue
@@ -72,8 +83,10 @@ class Generator implements Iterator
7283
/**
7384
* @implements Traversable<mixed, mixed>
7485
* @implements ArrayAccess<mixed, mixed>
86+
* @implements Iterator<mixed, mixed>
87+
* @implements RecursiveIterator<mixed, mixed>
7588
*/
76-
class SimpleXMLElement implements Traversable, ArrayAccess
89+
class SimpleXMLElement implements Traversable, ArrayAccess, Iterator, RecursiveIterator
7790
{
7891

7992
}

0 commit comments

Comments
 (0)