Unverified Commit b7e82302 authored by Sergei Morozov's avatar Sergei Morozov

Merge pull request #3257 from Majkl578/dev/removal/Type-__toString

Remove Doctrine\DBAL\Types\Type::__toString()
parents ff92ad64 97b7eb43
# 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.
......
......@@ -5,9 +5,6 @@ namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use function end;
use function explode;
use function str_replace;
/**
* The base class for so-called Doctrine mapping types.
......@@ -248,18 +245,6 @@ abstract class Type
return self::$_typesMap;
}
/**
* @deprecated Relying on string representation is discouraged and will be removed in DBAL 3.0.
*
* @return string
*/
public function __toString()
{
$e = explode('\\', static::class);
return str_replace('Type', '', end($e));
}
/**
* Does working with this column require SQL conversion functions?
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment