Skip to content

Commit 17d02e6

Browse files
committed
Remove unused method
1 parent 8019f65 commit 17d02e6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,21 +1901,6 @@ private function getKeyIndex($otherKeyType): ?int
19011901
return $this->getKeyIndexMap()[$otherKeyType->getValue()] ?? null;
19021902
}
19031903

1904-
/**
1905-
* @param ConstantIntegerType|ConstantStringType $otherKeyType
1906-
* @param array<int, ConstantIntegerType|ConstantStringType> $keyTypes
1907-
*/
1908-
private static function findKeyIndex($otherKeyType, array $keyTypes): ?int
1909-
{
1910-
foreach ($keyTypes as $i => $keyType) {
1911-
if ($keyType->equals($otherKeyType)) {
1912-
return $i;
1913-
}
1914-
}
1915-
1916-
return null;
1917-
}
1918-
19191904
public function makeOffsetRequired(Type $offsetType): self
19201905
{
19211906
$offsetType = $offsetType->toArrayKey();

0 commit comments

Comments
 (0)