diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php index 6c6f88fc360..b252981f5b1 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php @@ -1552,9 +1552,6 @@ private static function handleArrayAccessOnKeyedArray( $properties[$x] = $properties[$x]->setPossiblyUndefined(false); } } - if ($first) { - $properties[0] = $properties[0]->setPossiblyUndefined(false); - } $properties[$key_value->value] = $properties[$key_value->value]-> setPossiblyUndefined(true) ;