We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ceb6a commit 5a44c29Copy full SHA for 5a44c29
src/Type/UnionTypeHelper.php
@@ -32,6 +32,10 @@ public static function getReferencedClasses(array $types): array
32
*/
33
public static function sortTypes(array $types): array
34
{
35
+ if (count($types) > 1024) {
36
+ return $types;
37
+ }
38
+
39
usort($types, static function (Type $a, Type $b): int {
40
if ($a instanceof NullType) {
41
return 1;
0 commit comments