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

Add merging of vars_possibly_in_scope back

This commit is contained in:
Matt Brown 2017-02-21 17:41:54 -05:00
parent fa35c0efa9
commit a56456a719

View File

@ -114,6 +114,11 @@ class WhileChecker
}
}
$context->vars_possibly_in_scope = array_merge(
$context->vars_possibly_in_scope,
$while_context->vars_possibly_in_scope
);
if ($context->count_references) {
$context->referenced_vars = array_merge(
$context->referenced_vars,