mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix ref
This commit is contained in:
parent
a83a6cf3f7
commit
4b388a2951
@ -319,8 +319,8 @@ class LoopAnalyzer
|
||||
|
||||
foreach ($pre_loop_context->vars_in_scope as $var_id => $_) {
|
||||
if (!isset($pre_condition_vars_in_scope[$var_id])
|
||||
&& strpos($var_id, '->') === false
|
||||
&& strpos($var_id, '[') === false
|
||||
&& \strpos($var_id, '->') === false
|
||||
&& \strpos($var_id, '[') === false
|
||||
) {
|
||||
$inner_context->vars_in_scope[$var_id]->possibly_undefined = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user