Skip to content

Commit 5be1d2c

Browse files
Update NodeScopeResolver.php to prevent null exception
1 parent e140197 commit 5be1d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4966,7 +4966,7 @@ private function processArgs(
49664966
$scope = $scope->pushInFunctionCall($calleeReflection, $parameter);
49674967
}
49684968

4969-
$originalArg = $arg->getAttribute(ArgumentsNormalizer::ORIGINAL_ARG_ATTRIBUTE) ?? $arg;
4969+
$originalArg = $arg?->getAttribute(ArgumentsNormalizer::ORIGINAL_ARG_ATTRIBUTE) ?? $arg;
49704970
$nodeCallback($originalArg, $scope);
49714971

49724972
$originalScope = $scope;

0 commit comments

Comments
 (0)