Skip to content

Commit

Permalink
Remove pointless assignment which is overwritten a few lines later
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Jan 28, 2024
1 parent 45f3218 commit 0e30eb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ public static function analyze(
$outer_context->removeVarFromConflictingClauses($var_id);
}

$if_scope->if_actions = $final_actions = ScopeAnalyzer::getControlActions(
$final_actions = ScopeAnalyzer::getControlActions(
$stmt->stmts,
$statements_analyzer->node_data,
[],
);

// has a return/throw at end
$has_ending_statements = $final_actions === [ScopeAnalyzer::ACTION_END];

$has_leaving_statements = $has_ending_statements
Expand Down

0 comments on commit 0e30eb4

Please sign in to comment.