mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Assign var to correct context
This commit is contained in:
parent
152d1512f1
commit
6b2b80d0bb
@ -230,7 +230,7 @@ class ForeachChecker
|
||||
);
|
||||
|
||||
if ($var_comment && $var_comment->var_id) {
|
||||
$context->vars_in_scope[$var_comment->var_id] = $var_comment->type;
|
||||
$foreach_context->vars_in_scope[$var_comment->var_id] = $var_comment->type;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user