Skip to content

Commit e43c2d4

Browse files
authored
Clean up Union/Mixed check (#7339)
1 parent 1bdae03 commit e43c2d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ private function unionToSingleType(array $staticTypesByArgumentPosition, bool $r
132132
$unionedType
133133
);
134134

135-
if ($staticTypeByArgumentPosition[$position]->isNull()->yes()) {
136-
$staticTypeByArgumentPosition[$position] = new MixedType();
137-
}
138-
139135
if ($staticTypeByArgumentPosition[$position] instanceof UnionType) {
140136
foreach ($staticTypeByArgumentPosition[$position]->getTypes() as $subType) {
141137
if ($subType instanceof MixedType) {

0 commit comments

Comments
 (0)