1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix tests

This commit is contained in:
Daniil Gentili 2022-01-31 10:28:47 +01:00
parent d0c9272227
commit 6f51b4a432
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 2 deletions

View File

@ -823,9 +823,12 @@ class ClassTest extends TestCase
/**
* @template TKey
* @template TValue
* @extends FilterIterator<TKey, TValue>
* @extends FilterIterator<TKey, TValue, Iterator<TKey, TValue>>
*/
class DedupeIterator extends FilterIterator {
/**
* @param Iterator<TKey, TValue> $i
*/
public function __construct(Iterator $i) {
parent::__construct($i);
}

View File

@ -444,7 +444,7 @@ class InterfaceTest extends TestCase
interface I2 extends Iterator {}
/**
* @extends FilterIterator<mixed, mixed>
* @extends FilterIterator<mixed, mixed, Iterator<mixed, mixed>>
*/
class DedupeIterator extends FilterIterator {
public function __construct(I2 $i) {