Skip to content

Commit c38bbcc

Browse files
committed
Deprecate Doctrine\DBAL\Types\Type::getDefaultLength()
1 parent 7bbed59 commit c38bbcc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Upgrade to 2.9
22

3+
## Deprecated `Doctrine\DBAL\Types\Type::getDefaultLength()`
4+
5+
This method was never used by DBAL internally. It is now deprecated and will be removed in DBAL 3.0.
6+
37
## Deprecated `Doctrine\DBAL\Types\Type::__toString()`
48

59
Relying on string representation is discouraged and will be removed in DBAL 3.0.

lib/Doctrine/DBAL/Types/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
146146
*
147147
* @return int|null
148148
*
149-
* @todo Needed?
149+
* @deprecated Rely on information provided by the platform instead.
150150
*/
151151
public function getDefaultLength(AbstractPlatform $platform)
152152
{

0 commit comments

Comments
 (0)