Skip to content

Commit 9278af7

Browse files
committed
[BCB] Remove TypeUtils::getConstantStrings()
1 parent c507bd3 commit 9278af7

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
253253
* Remove `ConstantArrayType::generalizeToArray()`
254254
* Remove `TypeUtils::getArrays()`, use [`Type::getArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getArrays) instead
255255
* Remove `TypeUtils::getConstantArrays()`, use [`Type::getConstantArrays()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantArrays) instead
256+
* Remove `TypeUtils::getConstantStrings()`, use [`Type::getConstantStrings()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getConstantStrings) instead

src/Type/TypeUtils.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use PHPStan\Type\Accessory\HasPropertyType;
77
use PHPStan\Type\Constant\ConstantArrayType;
88
use PHPStan\Type\Constant\ConstantIntegerType;
9-
use PHPStan\Type\Constant\ConstantStringType;
109
use PHPStan\Type\Enum\EnumCaseObjectType;
1110
use PHPStan\Type\Generic\TemplateBenevolentUnionType;
1211
use PHPStan\Type\Generic\TemplateType;
@@ -21,16 +20,6 @@
2120
final class TypeUtils
2221
{
2322

24-
/**
25-
* @return ConstantStringType[]
26-
*
27-
* @deprecated Use PHPStan\Type\Type::getConstantStrings() instead
28-
*/
29-
public static function getConstantStrings(Type $type): array
30-
{
31-
return self::map(ConstantStringType::class, $type, false);
32-
}
33-
3423
/**
3524
* @return ConstantIntegerType[]
3625
*/

0 commit comments

Comments
 (0)