mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
parent
7367e8e6c2
commit
96ce488241
@ -220,6 +220,8 @@ class ObjectLike extends \Psalm\Type\Atomic
|
||||
|
||||
$key_type = TypeCombination::combineTypes($key_types);
|
||||
|
||||
$key_type->possibly_undefined = false;
|
||||
|
||||
if ($this->previous_key_type) {
|
||||
$key_type = Type::combineUnionTypes($this->previous_key_type, $key_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user