diff --git a/lib/Doctrine/DBAL/Types/Type.php b/lib/Doctrine/DBAL/Types/Type.php index 581bf44f66d..9a642b5cd65 100644 --- a/lib/Doctrine/DBAL/Types/Type.php +++ b/lib/Doctrine/DBAL/Types/Type.php @@ -5,6 +5,7 @@ use Doctrine\DBAL\Exception; use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; +use Doctrine\Deprecations\Deprecation; use function array_map; use function get_class; @@ -173,6 +174,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform) */ public function getDefaultLength(AbstractPlatform $platform) { + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/3255', + 'Type::getDefaultLength() is deprecated, use AbstractPlatform directly.' + ); + return null; }