Skip to content

Commit d3a27ce

Browse files
committed
Update MutatingScope.php
1 parent c2a7c46 commit d3a27ce

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
@@ -4491,7 +4491,7 @@ public function addTypeToExpression(Expr $expr, Type $type): self
44914491
$newType = TypeCombinator::intersect($type, $originalExprType);
44924492
if ($newType->isObject()->no() && $newType->equals($originalExprType)) {
44934493
// don't add the same type over and over again to improve performance.
4494-
// objects can get narrowed even though ObjectType->equal() will return true (e.g. via implicit "final" via new())
4494+
// objects can get narrowed even though ObjectType->equal() will return true (e.g. via implicit "final" via new Foo())
44954495
return $this;
44964496
}
44974497
return $this->specifyExpressionType($expr, $newType, $newType, TrinaryLogic::createYes());

0 commit comments

Comments
 (0)