Skip to content

Commit 3b93726

Browse files
committed
Update MutatingScope.php
1 parent f0ac080 commit 3b93726

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
@@ -4489,7 +4489,7 @@ public function addTypeToExpression(Expr $expr, Type $type): self
44894489

44904490
if ($originalExprType->equals($nativeType)) {
44914491
$newType = TypeCombinator::intersect($type, $originalExprType);
4492-
if ($newType->isObject()->no() && $newType->equals($originalExprType)) {
4492+
if (!$newType->isObject()->yes() && $newType->equals($originalExprType)) {
44934493
// don't add the same type over and over again to improve performance
44944494
return $this;
44954495
}

0 commit comments

Comments
 (0)