Skip to content

Commit

Permalink
Fixed missing processing of UseUse and GroupUse
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 6, 2023
1 parent f64b27c commit b797512
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,15 @@ private function processStmtNode(
} elseif ($stmt instanceof Node\Stmt\Nop) {
$hasYield = false;
$throwPoints = $overridingThrowPoints ?? [];
} elseif ($stmt instanceof Node\Stmt\UseUse) {
$hasYield = false;
$throwPoints = [];
} elseif ($stmt instanceof Node\Stmt\GroupUse) {
$hasYield = false;
$throwPoints = [];
foreach ($stmt->uses as $use) {
$this->processStmtNode($use, $scope, $nodeCallback, $context);
}
} else {
$hasYield = false;
$throwPoints = $overridingThrowPoints ?? [];
Expand Down

0 comments on commit b797512

Please sign in to comment.