Skip to content

Commit

Permalink
Process ConstFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 27, 2024
1 parent 5e45326 commit b5c63c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3298,6 +3298,11 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
$hasYield = false;
$throwPoints = [];
$impurePoints = [];
} elseif ($expr instanceof ConstFetch) {
$hasYield = false;
$throwPoints = [];
$impurePoints = [];
$nodeCallback($expr->name, $scope);
} else {
$hasYield = false;
$throwPoints = [];
Expand Down

0 comments on commit b5c63c2

Please sign in to comment.