Skip to content

Commit 681d912

Browse files
committed
Update MutatingScope.php
1 parent 343f58a commit 681d912

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

0 commit comments

Comments
 (0)