Skip to content

Commit

Permalink
Add missing reset of context inside_general_use
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonE committed Nov 12, 2024
1 parent bfbd53c commit 3a5063c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public static function analyze(

if (!$stmt->name instanceof PhpParser\Node\Identifier) {
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->name, $context) === false) {
$context->inside_general_use = $was_inside_general_use;

return false;
}
}
Expand Down

0 comments on commit 3a5063c

Please sign in to comment.