1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
Matthew Brown 2020-05-10 11:35:35 -04:00
parent a83a6cf3f7
commit 4b388a2951

View File

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