1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Remove unnecessary foreach

This commit is contained in:
Matthew Brown 2018-04-24 21:15:33 -04:00
parent 3e7e1b3020
commit 19ccdbc08b

View File

@ -460,12 +460,6 @@ class IfChecker
}
if ($if_scope->possibly_redefined_vars) {
foreach ($if_scope->possibly_redefined_vars as $var_id => $type) {
if ($context->hasVariable($var_id)) {
}
}
foreach ($if_scope->possibly_redefined_vars as $var_id => $type) {
if ($context->hasVariable($var_id)
&& !$type->failed_reconciliation