From 63d3e265c0ec08e215cc907f0b62457156492eef Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 1 Jan 2026 11:36:58 +0100 Subject: [PATCH] Prevent unnecessary node-key calculation --- src/Analyser/MutatingScope.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analyser/MutatingScope.php b/src/Analyser/MutatingScope.php index d42abaaecc..d9bd865357 100644 --- a/src/Analyser/MutatingScope.php +++ b/src/Analyser/MutatingScope.php @@ -4725,7 +4725,7 @@ public function filterBySpecifiedTypes(SpecifiedTypes $specifiedTypes): self } else { $scope = $scope->removeTypeFromExpression($expr, $type); } - $specifiedExpressions[$this->getNodeKey($expr)] = ExpressionTypeHolder::createYes($expr, $scope->getType($expr)); + $specifiedExpressions[$typeSpecification['exprString']] = ExpressionTypeHolder::createYes($expr, $scope->getType($expr)); } $conditions = [];