Skip to content

Commit 52ebda4

Browse files
committed
First class callable name was not processed
1 parent bfb99f5 commit 52ebda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4332,7 +4332,7 @@ function (MutatingScope $scope) use ($stmt, $expr, $nodeCallback, $context, $sto
43324332
$impurePoints = $result->getImpurePoints();
43334333
$isAlwaysTerminating = false;
43344334
if ($expr->getName() instanceof Expr) {
4335-
$nameResult = $this->processExprNode($stmt, $expr->getVar(), $scope, $storage, $nodeCallback, ExpressionContext::createDeep());
4335+
$nameResult = $this->processExprNode($stmt, $expr->getName(), $scope, $storage, $nodeCallback, ExpressionContext::createDeep());
43364336
$scope = $nameResult->getScope();
43374337
$hasYield = $hasYield || $nameResult->hasYield();
43384338
$throwPoints = array_merge($throwPoints, $nameResult->getThrowPoints());

0 commit comments

Comments
 (0)