From 4809581a191eb7f6518a4e7afabaac02f5d048a5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 27 Sep 2025 01:27:52 +0700 Subject: [PATCH] Clean up Union/Mixed check --- rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php b/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php index 68ae54b0fcb..fef791d7368 100644 --- a/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php +++ b/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php @@ -132,10 +132,6 @@ private function unionToSingleType(array $staticTypesByArgumentPosition, bool $r $unionedType ); - if ($staticTypeByArgumentPosition[$position]->isNull()->yes()) { - $staticTypeByArgumentPosition[$position] = new MixedType(); - } - if ($staticTypeByArgumentPosition[$position] instanceof UnionType) { foreach ($staticTypeByArgumentPosition[$position]->getTypes() as $subType) { if ($subType instanceof MixedType) {