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 9389eb1 commit b9f6c80Copy full SHA for b9f6c80
src/Type/TypeCombinator.php
@@ -234,10 +234,6 @@ public static function union(Type ...$types): Type
234
unset($types[$i]);
235
}
236
237
- foreach ($scalarTypes as $classType => $scalarTypeItems) {
238
- $scalarTypes[$classType] = array_values($scalarTypeItems);
239
- }
240
-
241
$enumCaseTypes = array_values($enumCaseTypes);
242
usort(
243
$integerRangeTypes,
@@ -260,6 +256,7 @@ public static function union(Type ...$types): Type
260
256
continue;
261
257
262
258
259
+ $scalarTypeItems = array_values($scalarTypeItems);
263
$scalarTypeItemsCount = count($scalarTypeItems);
264
for ($i = 0; $i < $typesCount; $i++) {
265
for ($j = 0; $j < $scalarTypeItemsCount; $j++) {
0 commit comments