Skip to content

Commit

Permalink
Merge pull request #3257 from Majkl578/dev/removal/Type-__toString
Browse files Browse the repository at this point in the history
Remove Doctrine\DBAL\Types\Type::__toString()
  • Loading branch information
morozov committed Sep 29, 2018
2 parents 635a86b + 4e18d0a commit 9f218b6
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 9f218b6

Please sign in to comment.