Skip to content

Commit

Permalink
preserve accessory types
Browse files Browse the repository at this point in the history
  • Loading branch information
schlndh committed May 1, 2024
1 parent 0db1585 commit 2c609e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/TypeCombinator.php
Expand Up @@ -715,7 +715,7 @@ private static function processArrayTypes(array $arrayTypes): array
if ($generalArrayOccurred && (!$overflowed || $filledArrays > 1)) {
$reducedArrayTypes = self::reduceArrays($arrayTypes, false);
if (count($reducedArrayTypes) === 1) {
return $reducedArrayTypes;
return [self::intersect($reducedArrayTypes[0], ...$accessoryTypes)];
}
$scopes = [];
$useTemplateArray = true;
Expand Down

0 comments on commit 2c609e4

Please sign in to comment.