diff --git a/UPGRADE.md b/UPGRADE.md index 8197a7b6e3c..ac86967405d 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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. diff --git a/psalm.xml.dist b/psalm.xml.dist index f63a1c8ef43..1bae46146f2 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -219,6 +219,11 @@ + + diff --git a/src/Types/Type.php b/src/Types/Type.php index 409c6c01d30..363c768c31c 100644 --- a/src/Types/Type.php +++ b/src/Types/Type.php @@ -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()