Skip to content

Commit

Permalink
Deprecate Type::canRequireSQLConversion()
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Dec 20, 2021
1 parent 421b8e8 commit 81833a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ awareness about deprecated code.

# Upgrade to 3.3

## Deprecated `Type::canRequireSQLConversion()`.

Consumers should call `Type::convertToDatabaseValueSQL()` and `Type::convertToPHPValueSQL()` regardless of the type.

## Deprecated the `doctrine-dbal` binary.

The documentation explains how the console tools can be bootstrapped for standalone usage.
Expand Down
3 changes: 3 additions & 0 deletions src/Types/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ static function (Type $type): string {
* {@see convertToPHPValueSQL} works for any type and mostly
* does nothing. This method can additionally be used for optimization purposes.
*
* @deprecated Consumers should call {@see convertToDatabaseValueSQL} and {@see convertToPHPValueSQL}
* regardless of the type.
*
* @return bool
*/
public function canRequireSQLConversion()
Expand Down

0 comments on commit 81833a7

Please sign in to comment.