mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
Possible fix
This commit is contained in:
parent
7e571f4df1
commit
b8ffb3163c
@ -667,6 +667,12 @@ class TypeCombiner
|
|||||||
$codebase,
|
$codebase,
|
||||||
$overwrite_empty_array
|
$overwrite_empty_array
|
||||||
);
|
);
|
||||||
|
if ((!$value_type->possibly_undefined || !$candidate_property_type->possibly_undefined)
|
||||||
|
&& $overwrite_empty_array
|
||||||
|
) {
|
||||||
|
$combination->objectlike_entries[$candidate_property_name] =
|
||||||
|
$combination->objectlike_entries[$candidate_property_name]->setPossiblyUndefined(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$candidate_property_type->possibly_undefined) {
|
if (!$candidate_property_type->possibly_undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user