mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +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:
parent
5bfb87c624
commit
ac8f892d13
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user