1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Only refine for matching closure union members

Ref #4136
This commit is contained in:
Brown 2020-09-15 09:39:50 -04:00 committed by Daniil Gentili
parent 7e534d14d0
commit a71af5a5e5
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -388,9 +388,7 @@ class ArgumentsAnalyzer
);
if (!$type_match_found) {
$newly_inferred_type = null;
break;
continue;
}
}