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

Remove changed vars from clauses in while loop to prevent re-application of logic

This commit is contained in:
Matt Brown 2017-02-21 17:19:15 -05:00
parent 2c7ffb6f4c
commit fa35c0efa9

View File

@ -107,6 +107,10 @@ class WhileChecker
}
$context->vars_in_scope = $vars_in_scope_reconciled;
foreach ($changed_vars as $changed_var) {
$context->removeVarFromClauses($changed_var);
}
}
}