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

Remove vars when they’ve been changed

This commit is contained in:
Matthew Brown 2017-01-30 22:25:51 -05:00
parent 95ebf5178a
commit 7d912fc214
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class ForChecker
$context->vars_in_scope[$var],
$for_context->vars_in_scope[$var]
);
$context->removeVarFromClauses($var);
}
}

View File

@ -193,6 +193,8 @@ class ForeachChecker
$context->vars_in_scope[$var],
$foreach_context->vars_in_scope[$var]
);
$context->removeVarFromClauses($var);
}
}