From 19d06691a3303a5c8e1bda53c6c9dec2f8d5228c Mon Sep 17 00:00:00 2001 From: Martin Herndl Date: Wed, 15 Feb 2023 10:07:34 +0100 Subject: [PATCH] Remove unneded code in `ConstantArrayType::hasOffsetValueType()` --- src/Type/Constant/ConstantArrayType.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Type/Constant/ConstantArrayType.php b/src/Type/Constant/ConstantArrayType.php index ac70af5ae5..8de623ef68 100644 --- a/src/Type/Constant/ConstantArrayType.php +++ b/src/Type/Constant/ConstantArrayType.php @@ -548,9 +548,6 @@ public function findTypeAndMethodNames(): array public function hasOffsetValueType(Type $offsetType): TrinaryLogic { $offsetType = $offsetType->toArrayKey(); - if ($offsetType instanceof UnionType) { - return TrinaryLogic::lazyExtremeIdentity($offsetType->getTypes(), fn (Type $innerType) => $this->hasOffsetValueType($innerType)); - } $result = TrinaryLogic::createNo(); foreach ($this->keyTypes as $i => $keyType) {