We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ConstantArrayType::hasOffsetValueType()
1 parent f3b9c18 commit 19d0669Copy full SHA for 19d0669
src/Type/Constant/ConstantArrayType.php
@@ -548,9 +548,6 @@ public function findTypeAndMethodNames(): array
548
public function hasOffsetValueType(Type $offsetType): TrinaryLogic
549
{
550
$offsetType = $offsetType->toArrayKey();
551
- if ($offsetType instanceof UnionType) {
552
- return TrinaryLogic::lazyExtremeIdentity($offsetType->getTypes(), fn (Type $innerType) => $this->hasOffsetValueType($innerType));
553
- }
554
555
$result = TrinaryLogic::createNo();
556
foreach ($this->keyTypes as $i => $keyType) {
0 commit comments