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 Jan 26, 2025
1 parent d314c44 commit f4e4dc4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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 f4e4dc4

Please sign in to comment.