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 572e0e8 commit 80b40f2Copy full SHA for 80b40f2
src/PhpDoc/TypeNodeResolver.php
@@ -1234,6 +1234,10 @@ private function expandIntMaskToType(Type $type): ?Type
1234
return IntegerRangeType::fromInterval($min, $max);
1235
}
1236
1237
+ if (count($values) > InitializerExprTypeResolver::CALCULATE_SCALARS_LIMIT) {
1238
+ return IntegerRangeType::fromInterval($min, $max);
1239
+ }
1240
+
1241
return TypeCombinator::union(...array_map(static fn ($value) => new ConstantIntegerType($value), $values));
1242
1243
0 commit comments