Skip to content

Commit a019d2b

Browse files
committed
Update MutatingScope.php
1 parent 1736ae5 commit a019d2b

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

0 commit comments

Comments
 (0)