Skip to content

Commit 7bbed59

Browse files
authored
Merge pull request #3258 from Majkl578/deprecation/Type-__toString
Deprecate Doctrine\DBAL\Types\Type::__toString()
2 parents 2afd876 + 7454e68 commit 7bbed59

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Upgrade to 2.9
22

3+
## Deprecated `Doctrine\DBAL\Types\Type::__toString()`
4+
5+
Relying on string representation is discouraged and will be removed in DBAL 3.0.
6+
37
## Deprecated `NULL` value of `$offset` in LIMIT queries
48

59
The `NULL` value of the `$offset` argument in `AbstractPlatform::(do)?ModifyLimitQuery()` methods is deprecated. If explicitly used in the method call, the absence of the offset should be indicated with a `0`.

lib/Doctrine/DBAL/Types/Type.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ public static function getTypesMap()
274274

275275
/**
276276
* @return string
277+
*
278+
* @deprecated Relying on string representation is discouraged and will be removed in DBAL 3.0.
277279
*/
278280
public function __toString()
279281
{

0 commit comments

Comments
 (0)