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:
parent
95ebf5178a
commit
7d912fc214
@ -57,6 +57,8 @@ class ForChecker
|
||||
$context->vars_in_scope[$var],
|
||||
$for_context->vars_in_scope[$var]
|
||||
);
|
||||
|
||||
$context->removeVarFromClauses($var);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -193,6 +193,8 @@ class ForeachChecker
|
||||
$context->vars_in_scope[$var],
|
||||
$foreach_context->vars_in_scope[$var]
|
||||
);
|
||||
|
||||
$context->removeVarFromClauses($var);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user