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:
parent
fa35c0efa9
commit
a56456a719
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user