Skip to content

Commit a050770

Browse files
committed
Update AllowedArrayKeysTypes.php
1 parent 17e0dd6 commit a050770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Arrays/AllowedArrayKeysTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public static function narrowOffsetKeyType(Type $varType, Type $keyType): ?Type
7474
return TypeCombinator::intersect($varIterableKeyType->toString(), $keyType);
7575
} elseif ($varType->isList()->yes()) {
7676
return TypeCombinator::intersect(
77-
IntegerRangeType::fromInterval(0, null),
7877
$varIterableKeyType,
78+
$keyType,
7979
);
8080
}
8181

0 commit comments

Comments
 (0)