Skip to content

Commit

Permalink
Remove Doctrine\DBAL\Types\Type::__toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 authored and morozov committed Sep 29, 2018
1 parent 635a86b commit 4e18d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
12 changes: 0 additions & 12 deletions lib/Doctrine/DBAL/Types/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?
*
Expand Down

0 comments on commit 4e18d0a

Please sign in to comment.