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 5ef5fa7 commit 6d2574eCopy full SHA for 6d2574e
src/Type/IntersectionType.php
@@ -686,10 +686,7 @@ public function getArraySize(): Type
686
if ($arraySize instanceof IntegerRangeType) {
687
$knownOffsets = [];
688
foreach ($this->types as $type) {
689
- if ($type instanceof HasOffsetValueType) {
690
- $knownOffsets[$type->getOffsetType()->getValue()] = true;
691
- }
692
- if (!($type instanceof HasOffsetType)) {
+ if (!($type instanceof HasOffsetValueType) && !($type instanceof HasOffsetType)) {
693
continue;
694
}
695
0 commit comments