Skip to content

Commit 272fa09

Browse files
committed
remove ai leftover
1 parent 2c168d5 commit 272fa09

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/Type/IntersectionType.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -986,13 +986,7 @@ public function setOffsetValueType(?Type $offsetType, Type $valueType, bool $uni
986986

987987
public function setExistingOffsetValueType(Type $offsetType, Type $valueType): Type
988988
{
989-
$result = $this->intersectTypes(static fn (Type $type): Type => $type->setExistingOffsetValueType($offsetType, $valueType));
990-
991-
if ($this->isList()->yes() && !$result->isList()->yes()) {
992-
$result = TypeCombinator::intersect($result, new AccessoryArrayListType());
993-
}
994-
995-
return $result;
989+
return $this->intersectTypes(static fn (Type $type): Type => $type->setExistingOffsetValueType($offsetType, $valueType));
996990
}
997991

998992
public function unsetOffset(Type $offsetType): Type

0 commit comments

Comments
 (0)