From 4e18d0a43bf31fcd470d80d251f08fc6e23d2cc0 Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Fri, 17 Aug 2018 22:30:20 +0200 Subject: [PATCH] Remove Doctrine\DBAL\Types\Type::__toString() --- UPGRADE.md | 4 ++++ lib/Doctrine/DBAL/Types/Type.php | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 19b21ddf2c4..11a206ed8f0 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 3.0 +## BC BREAK: `Doctrine\DBAL\Types\Type::__toString()` removed + +Relying on string representation was discouraged and has been removed. + ## BC BREAK: The `NULL` value of `$offset` in LIMIT queries is not allowed The `NULL` value of the `$offset` argument in `AbstractPlatform::(do)?ModifyLimitQuery()` methods is no longer allowed. The absence of the offset should be indicated with a `0` which is now the default value. diff --git a/lib/Doctrine/DBAL/Types/Type.php b/lib/Doctrine/DBAL/Types/Type.php index e75c93242a6..0e6c991db73 100644 --- a/lib/Doctrine/DBAL/Types/Type.php +++ b/lib/Doctrine/DBAL/Types/Type.php @@ -255,18 +255,6 @@ public static function getTypesMap() return self::$_typesMap; } - /** - * @return string - * - * @deprecated Relying on string representation is discouraged and will be removed in DBAL 3.0. - */ - public function __toString() - { - $e = explode('\\', get_class($this)); - - return str_replace('Type', '', end($e)); - } - /** * Does working with this column require SQL conversion functions? *