Skip to content

Commit 13d6595

Browse files
committed
Optimize more aggresively
1 parent 2e89a22 commit 13d6595

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Type/TypeCombinator.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,15 +661,9 @@ private static function optimizeConstantArrays(array $types): array
661661
return $type->generalize(GeneralizePrecision::moreSpecific());
662662
}
663663
$constantArrayValuesCount += count($type->getValueTypes());
664-
665-
return $traverse($type);
666-
}
667-
668-
if ($type instanceof UnionType || $type instanceof IntersectionType) {
669-
return $traverse($type);
670664
}
671665

672-
return $type;
666+
return $traverse($type);
673667
});
674668
}
675669

0 commit comments

Comments
 (0)