1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Merge pull request #9646 from SenseException/iteratoriterator-construct

fix: add missing constructor parameter to IteratorIterator
This commit is contained in:
orklah 2023-04-13 10:45:11 +02:00 committed by GitHub
commit eb83938a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ class IteratorIterator implements OuterIterator {
/**
* @param TIterator $iterator
*/
public function __construct(Traversable $iterator) {}
public function __construct(Traversable $iterator, ?string $class = null) {}
/**
* @return TValue|null current value or null when iterator is drained