Skip to content

Commit f29758a

Browse files
committed
use returned value
1 parent 8793f30 commit f29758a

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
@@ -1966,7 +1966,7 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
19661966
}
19671967

19681968
$scope = $scope->assignVariable($var->name, new MixedType(), new MixedType(), TrinaryLogic::createYes());
1969-
$scope->setVariableAsGlobal($var->name);
1969+
$scope = $scope->setVariableAsGlobal($var->name);
19701970

19711971
$vars[] = $var->name;
19721972
}

0 commit comments

Comments
 (0)