Skip to content

Commit ab31123

Browse files
yottalogicalisfedorov
authored andcommitted
Add type generics to SeekableIterator
1 parent b45e2cf commit ab31123

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SPL/SPL.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ public function getChildren() {}
637637
/**
638638
* The Seekable iterator.
639639
* @link https://php.net/manual/en/class.seekableiterator.php
640+
* @template TKey
641+
* @template-covariant TValue
642+
* @template-extends Iterator<TKey, TValue>
640643
*/
641644
interface SeekableIterator extends Iterator
642645
{

0 commit comments

Comments
 (0)