We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e89a22 commit 13d6595Copy full SHA for 13d6595
src/Type/TypeCombinator.php
@@ -661,15 +661,9 @@ private static function optimizeConstantArrays(array $types): array
661
return $type->generalize(GeneralizePrecision::moreSpecific());
662
}
663
$constantArrayValuesCount += count($type->getValueTypes());
664
-
665
- return $traverse($type);
666
- }
667
668
- if ($type instanceof UnionType || $type instanceof IntersectionType) {
669
670
671
672
- return $type;
+ return $traverse($type);
673
});
674
675
0 commit comments