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:
parent
2c7ffb6f4c
commit
fa35c0efa9
@ -107,6 +107,10 @@ class WhileChecker
|
||||
}
|
||||
|
||||
$context->vars_in_scope = $vars_in_scope_reconciled;
|
||||
|
||||
foreach ($changed_vars as $changed_var) {
|
||||
$context->removeVarFromClauses($changed_var);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user