Skip to content

Commit 19d0669

Browse files
herndlmondrejmirtes
authored andcommitted
Remove unneded code in ConstantArrayType::hasOffsetValueType()
1 parent f3b9c18 commit 19d0669

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Type/Constant/ConstantArrayType.php

-3
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,6 @@ public function findTypeAndMethodNames(): array
548548
public function hasOffsetValueType(Type $offsetType): TrinaryLogic
549549
{
550550
$offsetType = $offsetType->toArrayKey();
551-
if ($offsetType instanceof UnionType) {
552-
return TrinaryLogic::lazyExtremeIdentity($offsetType->getTypes(), fn (Type $innerType) => $this->hasOffsetValueType($innerType));
553-
}
554551

555552
$result = TrinaryLogic::createNo();
556553
foreach ($this->keyTypes as $i => $keyType) {

0 commit comments

Comments
 (0)