Skip to content

Commit b5c63c2

Browse files
committed
Process ConstFetch
1 parent 5e45326 commit b5c63c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Analyser/NodeScopeResolver.php

+5
Original file line numberDiff line numberDiff line change
@@ -3298,6 +3298,11 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
32983298
$hasYield = false;
32993299
$throwPoints = [];
33003300
$impurePoints = [];
3301+
} elseif ($expr instanceof ConstFetch) {
3302+
$hasYield = false;
3303+
$throwPoints = [];
3304+
$impurePoints = [];
3305+
$nodeCallback($expr->name, $scope);
33013306
} else {
33023307
$hasYield = false;
33033308
$throwPoints = [];

0 commit comments

Comments
 (0)