Skip to content

Commit 248ce53

Browse files
committed
[BCB] Remove ArrayType::generalizeKeys()
1 parent 4213c24 commit 248ce53

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

UPGRADING.md

+1
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
232232
* `Type::getSmallerType()`, `Type::getSmallerOrEqualType()`, `Type::getGreaterType()`, `Type::getGreaterOrEqualType()`, `Type::isSmallerThan()`, `Type::isSmallerThanOrEqual()` now require [`PhpVersion`](https://apiref.phpstan.org/2.0.x/PHPStan.Php.PhpVersion.html) as argument.
233233
* `CompoundType::isGreaterThan()`, `CompoundType::isGreaterThanOrEqual()` now require [`PhpVersion`](https://apiref.phpstan.org/2.0.x/PHPStan.Php.PhpVersion.html) as argument.
234234
* Removed `ReflectionProvider::supportsAnonymousClasses()` (all reflection providers support anonymous classes)
235+
* Remove `ArrayType::generalizeKeys()`

src/Type/ArrayType.php

-8
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,6 @@ function () use ($level, $isMixedKeyType, $isMixedItemType): string {
183183
);
184184
}
185185

186-
/**
187-
* @deprecated
188-
*/
189-
public function generalizeKeys(): self
190-
{
191-
return new self($this->keyType->generalize(GeneralizePrecision::lessSpecific()), $this->itemType);
192-
}
193-
194186
public function generalizeValues(): self
195187
{
196188
return new self($this->keyType, $this->itemType->generalize(GeneralizePrecision::lessSpecific()));

0 commit comments

Comments
 (0)