Skip to content

Commit 7edc6ca

Browse files
committed
try suggestions
1 parent 3d44fe9 commit 7edc6ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ private function getConditionalSpecifiedTypes(
15881588
(
15891589
$argumentExpr instanceof Node\Scalar
15901590
|| ($argumentExpr instanceof ConstFetch && in_array(strtolower($argumentExpr->name->toString()), ['true', 'false', 'null'], true))
1591+
&& ($ifType instanceof NeverType || $elseType instanceof NeverType)
15911592
)
15921593
) {
15931594
return null;

0 commit comments

Comments
 (0)