Skip to content

Commit 49eb18f

Browse files
committed
[BCB] Remove Scope::isSpecified()
1 parent d904afc commit 49eb18f

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
245245
* Remove `PropertyTag::getType()`, use `getReadableType()` / `getWritableType()` instead
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()`
248+
* Remove `Scope::isSpecified()`, use `hasExpressionType()` instead

src/Analyser/MutatingScope.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,15 +2781,6 @@ public function getTypeFromValue($value): Type
27812781
return ConstantTypeHelper::getTypeFromValue($value);
27822782
}
27832783

2784-
/**
2785-
* @api
2786-
* @deprecated use hasExpressionType instead
2787-
*/
2788-
public function isSpecified(Expr $node): bool
2789-
{
2790-
return !$node instanceof Variable && $this->hasExpressionType($node)->yes();
2791-
}
2792-
27932784
/** @api */
27942785
public function hasExpressionType(Expr $node): TrinaryLogic
27952786
{

src/Analyser/Scope.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ public function resolveTypeByName(Name $name): TypeWithClassName;
105105
*/
106106
public function getTypeFromValue($value): Type;
107107

108-
/** @deprecated use hasExpressionType instead */
109-
public function isSpecified(Expr $node): bool;
110-
111108
public function hasExpressionType(Expr $node): TrinaryLogic;
112109

113110
public function isInClassExists(string $className): bool;

0 commit comments

Comments
 (0)