Skip to content

Commit bb48899

Browse files
committed
[BCB] Remove ConstantArrayType::removeFirst()
1 parent 8c752e4 commit bb48899

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
253253
* Remove `ConstantArrayType::generalizeToArray()`
254254
* Remove `ConstantArrayType::findTypeAndMethodName()`, use `findTypeAndMethodNames()` instead
255255
* Remove `ConstantArrayType::removeLast()`, use [`Type::popArray()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_popArray) instead
256+
* Remove `ConstantArrayType::removeFirst()`, use [`Type::shiftArray()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_shiftArray) instead
256257
* Made `TypeUtils` thinner by removing methods:
257258
* Remove `TypeUtils::getArrays()` and `getAnyArrays()`, use [`Type::getArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getArrays) instead
258259
* Remove `TypeUtils::getConstantArrays()` and `getOldConstantArrays()`, use [`Type::getConstantArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantArrays) instead

src/Type/Constant/ConstantArrayType.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,12 +1034,6 @@ private function removeLastElements(int $length): self
10341034
);
10351035
}
10361036

1037-
/** @deprecated Use shiftArray() instead */
1038-
public function removeFirst(): self
1039-
{
1040-
return $this->removeFirstElements(1);
1041-
}
1042-
10431037
/** @param positive-int $length */
10441038
private function removeFirstElements(int $length, bool $reindex = true): self
10451039
{

0 commit comments

Comments
 (0)