1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00
This commit is contained in:
Daniil Gentili 2022-12-19 17:27:49 +01:00
parent b9424a88cb
commit ce06f4e0d0

View File

@ -1544,6 +1544,9 @@ class ArrayFetchAnalyzer
$replacement_type,
);
}
$properties[0] = $properties[0]->setPossiblyUndefined(
$replacement_type->possibly_undefined
);
$properties[$key_value->value] = $properties[$key_value->value]->
setPossiblyUndefined(true)
;