From dead1be566696ca557e3b2c07c07f0b6d7dbd6a8 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 2 Dec 2022 14:34:59 +0100 Subject: [PATCH] Fix --- src/Psalm/Internal/Type/TypeCombiner.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Psalm/Internal/Type/TypeCombiner.php b/src/Psalm/Internal/Type/TypeCombiner.php index 579000259..d76091f2a 100644 --- a/src/Psalm/Internal/Type/TypeCombiner.php +++ b/src/Psalm/Internal/Type/TypeCombiner.php @@ -1451,15 +1451,13 @@ class TypeCombiner $allow_mixed_union ); - if (!$generic_type_params[1]->isMixed()) { - $generic_type_params[1] = Type::combineUnionTypes( - $generic_type_params[1], - $objectlike_generic_type, - $codebase, - $overwrite_empty_array, - $allow_mixed_union - ); - } + $generic_type_params[1] = Type::combineUnionTypes( + $generic_type_params[1], + $objectlike_generic_type, + $codebase, + $overwrite_empty_array, + $allow_mixed_union + ); } if ($combination->all_arrays_callable) {