Skip to content

Commit 6a1160b

Browse files
committed
cs
1 parent 214cee1 commit 6a1160b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Type/IntersectionType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,7 @@ public function getArraySize(): Type
686686
if ($arraySize instanceof IntegerRangeType) {
687687
$knownOffsets = [];
688688
foreach ($this->types as $type) {
689-
if ($type instanceof HasOffsetValueType) {
690-
$knownOffsets[$type->getOffsetType()->getValue()] = true;
691-
}
692-
if (!($type instanceof HasOffsetType)) {
689+
if (!($type instanceof HasOffsetValueType) && !($type instanceof HasOffsetType)) {
693690
continue;
694691
}
695692

0 commit comments

Comments
 (0)