Skip to content

Commit e82df4d

Browse files
committed
simplify
1 parent e123abb commit e82df4d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Analyser/TypeSpecifier.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,6 @@ private function getConditionalSpecifiedTypes(
15901590
$parameterExpr instanceof Node\Scalar
15911591
|| ($parameterExpr instanceof ConstFetch && in_array(strtolower($parameterExpr->name->toString()), ['true', 'false', 'null'], true))
15921592
)
1593-
&& !$targetType instanceof UnionType
15941593
&& $targetType->isConstantScalarValue()->yes()
15951594
) {
15961595
return null;

0 commit comments

Comments
 (0)