diff --git a/UPGRADE.md b/UPGRADE.md index e6730319b00..b16b3404176 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 2.9 +## Deprecated `Doctrine\DBAL\Types\Type::getDefaultLength()` + +This method was never used by DBAL internally. It is now deprecated. + ## Deprecated `NULL` value of `$offset` in LIMIT queries The `NULL` value of the `$offset` argument in `AbstractPlatform::(do)?ModifyLimitQuery()` methods is deprecated. If explicitly used in the method call, the absence of the offset should be indicated with a `0`. diff --git a/lib/Doctrine/DBAL/Types/Type.php b/lib/Doctrine/DBAL/Types/Type.php index 453631e0aaa..309db13052b 100644 --- a/lib/Doctrine/DBAL/Types/Type.php +++ b/lib/Doctrine/DBAL/Types/Type.php @@ -146,7 +146,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform) * * @return int|null * - * @todo Needed? + * @deprecated Rely on information provided by the platform instead. */ public function getDefaultLength(AbstractPlatform $platform) {