1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix never return union type wrong condition

Fix never return union type wrong condition

Related https://github.com/vimeo/psalm/pull/8624
This commit is contained in:
kkmuffme 2022-12-29 18:50:58 +01:00
parent 5bfb87c624
commit ac8f892d13

View File

@ -643,7 +643,7 @@ abstract class Type
$combined_type->ignore_falsable_issues = true;
}
if ($type_1->explicit_never && $type_2->explicit_never) {
if ($type_1->explicit_never || $type_2->explicit_never) {
$combined_type->explicit_never = true;
}