Skip to content

Commit

Permalink
Remove unneded code in ConstantArrayType::hasOffsetValueType()
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm authored and ondrejmirtes committed Feb 15, 2023
1 parent f3b9c18 commit 19d0669
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 19d0669

Please sign in to comment.