Skip to content

Commit

Permalink
Merge pull request #8972 from Nicelocal/revert
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Dec 21, 2022
2 parents da24142 + e2a5ef1 commit c69ebc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Codebase/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public function getMethodReturnType(
return $candidate_type;
}

if ($old_contained_by_new || $overridden_storage_return_type->hasTemplate()) {
if ($old_contained_by_new) {
$self_class = $appearing_fq_class_storage->name;

return $candidate_type;
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/ClassTemplateExtendsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ClassTemplateExtendsTest extends TestCase
public function providerValidCodeParse(): iterable
{
return [
'interface' => [
'SKIPPED-interface' => [
'code' => '<?php
/**
* Singleton interface
Expand Down

0 comments on commit c69ebc6

Please sign in to comment.