Skip to content

Commit

Permalink
Bind template params for IteratorIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jan 24, 2020
1 parent efd46b3 commit 3af4834
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Psalm/Internal/Stubs/CoreGenericClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ public function getInnerIterator();
* @template-implements OuterIterator<TKey, TValue>
*/
class IteratorIterator implements OuterIterator {
/**
* @param Traversable<TKey, TValue> $iterator
*/
public function __construct(Traversable $iterator) {}

/**
* @return Iterator<TKey, TValue>
*/
Expand Down

0 comments on commit 3af4834

Please sign in to comment.