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 6589d03 commit 6732e54Copy full SHA for 6732e54
src/Type/TypeCombinator.php
@@ -814,13 +814,13 @@ private static function processArrayTypes(array $arrayTypes): array
814
foreach ($constantArrays as $constantArray) {
815
$valueTypes = $constantArray->getValueTypes();
816
foreach ($constantArray->getKeyTypes() as $i => $keyType) {
817
- $keyTypesForGeneralArray[] = $keyType;
818
$valueTypesForGeneralArray[] = $valueTypes[$i];
819
820
$keyTypeValue = $keyType->getValue();
821
if (array_key_exists($keyTypeValue, $constantKeyTypesNumbered)) {
822
continue;
823
}
+ $keyTypesForGeneralArray[] = $keyType;
824
825
$constantKeyTypesNumbered[$keyTypeValue] = $nextConstantKeyTypeIndex;
826
$nextConstantKeyTypeIndex *= 2;
0 commit comments