1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
Daniil Gentili 2022-12-21 14:00:57 +01:00
parent 59149e9c54
commit dd721a27c5

View File

@ -803,7 +803,7 @@ class Methods
return $candidate_type; 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; $self_class = $appearing_fq_class_storage->name;
return $candidate_type; return $candidate_type;