Skip to content

Commit 5e5e0b8

Browse files
committed
more readable
1 parent 43fa64d commit 5e5e0b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4428,7 +4428,7 @@ public function addTypeToExpression(Expr $expr, Type $type): self
44284428

44294429
if ($originalExprType->equals($nativeType)) {
44304430
$newType = TypeCombinator::intersect($type, $originalExprType);
4431-
if ($newType->isConstantScalarValue()->yes() && $newType->equals($nativeType)) {
4431+
if ($newType->isConstantScalarValue()->yes() && $newType->equals($originalExprType)) {
44324432
// don't add the same type over and over again to improve performance
44334433
return $this;
44344434
}

0 commit comments

Comments
 (0)