mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix #2567 - still remap params in some circumstances
This commit is contained in:
parent
702ca34c41
commit
024ec38aa1
@ -1877,6 +1877,8 @@ class TypeAnalyzer
|
||||
$input_type_part->value,
|
||||
$generic_params
|
||||
);
|
||||
|
||||
$container_type_part->remapped_params = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2740,6 +2740,26 @@ class ClassTemplateExtendsTest extends TestCase
|
||||
public function zip(): C;
|
||||
}',
|
||||
],
|
||||
'implementsParameterisedIterator' => [
|
||||
'<?php
|
||||
/**
|
||||
* @implements \IteratorAggregate<int,\stdClass>
|
||||
*/
|
||||
class SelectEntries implements \IteratorAggregate
|
||||
{
|
||||
public function getIterator(): SelectIterator {
|
||||
return new SelectIterator();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @implements \Iterator<int,\stdClass>
|
||||
* @psalm-suppress UnimplementedInterfaceMethod
|
||||
*/
|
||||
class SelectIterator implements \Iterator
|
||||
{
|
||||
}'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user