1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Fix unnecessary array merge

This operation is already performed on line 420
This commit is contained in:
Matthew Brown 2022-01-23 23:17:51 -05:00
parent 8a5290354e
commit ab2b77d9f5

View File

@ -491,8 +491,6 @@ class IfElseAnalyzer
}
}
$context->possibly_assigned_var_ids += $if_scope->possibly_assigned_var_ids;
if (!in_array(ScopeAnalyzer::ACTION_NONE, $if_scope->final_actions, true)) {
$context->has_returned = true;
}