mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Skip intersection of template types during inheritance check
This commit is contained in:
parent
7d95f15e30
commit
bccda92f31
@ -768,8 +768,10 @@ class Methods
|
||||
$candidate_type
|
||||
);
|
||||
|
||||
if ((!$old_contained_by_new && !$new_contained_by_old)
|
||||
|| ($old_contained_by_new && $new_contained_by_old)
|
||||
if (((!$old_contained_by_new && !$new_contained_by_old)
|
||||
|| ($old_contained_by_new && $new_contained_by_old))
|
||||
&& !$candidate_type->hasTemplate()
|
||||
&& !$overridden_storage->return_type->hasTemplate()
|
||||
) {
|
||||
$attempted_intersection = null;
|
||||
if ($old_contained_by_new) { //implicitly $new_contained_by_old as well
|
||||
|
Loading…
Reference in New Issue
Block a user