We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8019f65 commit 17d02e6Copy full SHA for 17d02e6
src/Type/Constant/ConstantArrayType.php
@@ -1901,21 +1901,6 @@ private function getKeyIndex($otherKeyType): ?int
1901
return $this->getKeyIndexMap()[$otherKeyType->getValue()] ?? null;
1902
}
1903
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
1919
public function makeOffsetRequired(Type $offsetType): self
1920
{
1921
$offsetType = $offsetType->toArrayKey();
0 commit comments