Skip to content

Commit b797512

Browse files
committed
Fixed missing processing of UseUse and GroupUse
1 parent f64b27c commit b797512

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/Analyser/NodeScopeResolver.php

+9
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,15 @@ private function processStmtNode(
14961496
} elseif ($stmt instanceof Node\Stmt\Nop) {
14971497
$hasYield = false;
14981498
$throwPoints = $overridingThrowPoints ?? [];
1499+
} elseif ($stmt instanceof Node\Stmt\UseUse) {
1500+
$hasYield = false;
1501+
$throwPoints = [];
1502+
} elseif ($stmt instanceof Node\Stmt\GroupUse) {
1503+
$hasYield = false;
1504+
$throwPoints = [];
1505+
foreach ($stmt->uses as $use) {
1506+
$this->processStmtNode($use, $scope, $nodeCallback, $context);
1507+
}
14991508
} else {
15001509
$hasYield = false;
15011510
$throwPoints = $overridingThrowPoints ?? [];

0 commit comments

Comments
 (0)