1
0
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:
Matthew Brown 2017-06-13 00:09:15 -04:00
parent 152d1512f1
commit 6b2b80d0bb

View File

@ -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;
}
}