Skip to content
Permalink
Browse files

Fix #2567 - still remap params in some circumstances

  • Loading branch information
muglug committed Jan 7, 2020
1 parent 702ca34 commit 024ec38aa1fb6e554de9a1fe1169234d323aead6
Showing with 22 additions and 0 deletions.
  1. +2 −0 src/Psalm/Internal/Analyzer/TypeAnalyzer.php
  2. +20 −0 tests/Template/ClassTemplateExtendsTest.php
@@ -1877,6 +1877,8 @@ private static function isMatchingTypeContainedBy(
$input_type_part->value,
$generic_params
);

$container_type_part->remapped_params = false;
}
}

@@ -2740,6 +2740,26 @@ interface AC extends C {
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
{
}'
],
];
}

0 comments on commit 024ec38

Please sign in to comment.
You can’t perform that action at this time.