Skip to content

Commit eab5b45

Browse files
committed
Update NodeScopeResolver.php
1 parent 601e4ac commit eab5b45

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
@@ -3308,7 +3308,7 @@ function (MutatingScope $scope) use ($stmt, $expr, $nodeCallback, $context, $sto
33083308
} elseif ($expr->class instanceof Name) {
33093309
$classType = $scope->resolveTypeByName($expr->class);
33103310
$methodName = $expr->name->name;
3311-
} elseif ($expr->class instanceof Expr && $expr->name instanceof Identifier) {
3311+
} elseif ($expr->class instanceof Expr) {
33123312
$classType = TypeCombinator::removeNull($scope->getType($expr->class))->getObjectTypeOrClassStringObjectType();
33133313
$methodName = $expr->name->name;
33143314
}

0 commit comments

Comments
 (0)