Skip to content

Commit c98dd89

Browse files
committed
[BCB] Remove TypeUtils::getOldConstantArrays()
1 parent c8e4ed9 commit c98dd89

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
252252
* Use `getFirstIterable*Type` and `getLastIterable*Type` instead
253253
* Remove `ConstantArrayType::generalizeToArray()`
254254
* Remove `TypeUtils::getArrays()` and `getAnyArrays()`, use [`Type::getArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getArrays) instead
255-
* Remove `TypeUtils::getConstantArrays()`, use [`Type::getConstantArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantArrays) instead
255+
* Remove `TypeUtils::getConstantArrays()` and `getOldConstantArrays()`, use [`Type::getConstantArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantArrays) instead
256256
* Remove `TypeUtils::getConstantStrings()`, use [`Type::getConstantStrings()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantStrings) instead
257257
* Remove `TypeUtils::getConstantTypes()` and `getAnyConstantTypes()`, use [`Type::isConstantValue()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_isConstantValue) or [`Type::generalize()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_generalize)
258258
* Remove `TypeUtils::generalizeType()`, use [`Type::generalize()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_generalize) instead

src/Type/TypeUtils.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public static function getEnumCaseObjects(Type $type): array
5252
return self::map(EnumCaseObjectType::class, $type, false);
5353
}
5454

55-
/**
56-
* @internal
57-
* @return ConstantArrayType[]
58-
*
59-
* @deprecated Use PHPStan\Type\Type::getConstantArrays().
60-
*/
61-
public static function getOldConstantArrays(Type $type): array
62-
{
63-
return self::map(ConstantArrayType::class, $type, false);
64-
}
65-
6655
/**
6756
* @return mixed[]
6857
*/

0 commit comments

Comments
 (0)