Skip to content
Permalink
Browse files

Fix #1901 - improve loop-based handling of vars after continue

  • Loading branch information...
muglug committed Jul 5, 2019
1 parent 6dd549b commit 678d4e528691550d6ce79ee806eaf490104d3b76
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/Psalm/Internal/Analyzer/Statements/Block/LoopAnalyzer.php
@@ -462,8 +462,6 @@ public static function analyze(
foreach ($loop_scope->possibly_unreferenced_vars as $var_id => $locations) {
if (isset($inner_context->unreferenced_vars[$var_id])) {
$inner_context->unreferenced_vars[$var_id] += $locations;
} else {
$inner_context->unreferenced_vars[$var_id] = $locations;
}
}

0 comments on commit 678d4e5

Please sign in to comment.
You can’t perform that action at this time.