Skip to content

Commit 9663f0e

Browse files
committed
[BCB] Remove ConstantArrayType::isEmpty()
1 parent acd35c8 commit 9663f0e

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
@@ -246,3 +246,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
246246
* Remove `GenericTypeVariableResolver`, use [`Type::getTemplateType()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getTemplateType) instead
247247
* Rename `Type::isClassStringType()` to `Type::isClassString()`
248248
* Remove `Scope::isSpecified()`, use `hasExpressionType()` instead
249+
* Remove `ConstantArrayType::isEmpty()`, use `isIterableAtLeastOnce()->no()` instead

src/Type/Constant/ConstantArrayType.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ public function isConstantValue(): TrinaryLogic
136136
return TrinaryLogic::createYes();
137137
}
138138

139-
/** @deprecated Use isIterableAtLeastOnce()->no() instead */
140-
public function isEmpty(): bool
141-
{
142-
return count($this->keyTypes) === 0;
143-
}
144-
145139
/**
146140
* @return non-empty-list<int>
147141
*/

0 commit comments

Comments
 (0)