mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
Fix
This commit is contained in:
parent
8aecadda83
commit
dead1be566
@ -1451,7 +1451,6 @@ class TypeCombiner
|
|||||||
$allow_mixed_union
|
$allow_mixed_union
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$generic_type_params[1]->isMixed()) {
|
|
||||||
$generic_type_params[1] = Type::combineUnionTypes(
|
$generic_type_params[1] = Type::combineUnionTypes(
|
||||||
$generic_type_params[1],
|
$generic_type_params[1],
|
||||||
$objectlike_generic_type,
|
$objectlike_generic_type,
|
||||||
@ -1460,7 +1459,6 @@ class TypeCombiner
|
|||||||
$allow_mixed_union
|
$allow_mixed_union
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($combination->all_arrays_callable) {
|
if ($combination->all_arrays_callable) {
|
||||||
$array_type = new TCallableArray($generic_type_params);
|
$array_type = new TCallableArray($generic_type_params);
|
||||||
|
Loading…
Reference in New Issue
Block a user