From 77427c5af9be2722920eaaea7926275c63d1b241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 1 Dec 2021 22:53:09 +0100 Subject: [PATCH] Remove Platform API about commented types Type::requiresSQLCommentHint() already does the job. --- UPGRADE.md | 13 +++ psalm.xml.dist | 16 ---- src/Platforms/AbstractPlatform.php | 90 -------------------- src/Platforms/DB2Platform.php | 21 ----- tests/Platforms/AbstractPlatformTestCase.php | 37 -------- tests/Platforms/DB2PlatformTest.php | 17 ---- 6 files changed, 13 insertions(+), 181 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 7aa9c91c988..cd6cbf76a8f 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -8,6 +8,19 @@ awareness about deprecated code. # Upgrade to 4.0 +## BC BREAK: Removed Platform "commented type" API + +Since `Type::requiresSQLCommentTypeHint()` already allows determining whether a +type should result in SQL columns with a type hint in their comments, the +following methods are removed: + +- `AbstractPlatform::isCommentedDoctrineType()` +- `AbstractPlatform::initializeCommentedDoctrineTypes()` +- `AbstractPlatform::markDoctrineTypeCommented()` + +The protected property `AbstractPlatform::$doctrineTypeComments` is removed as +well. + ## BC BREAK: Removed `Connection::getWrappedConnection()`, `Connection::connect()` made `protected`. The wrapper-level `Connection::getWrappedConnection()` method has been removed. The `Connection::connect()` method diff --git a/psalm.xml.dist b/psalm.xml.dist index 5a5618aa47e..8df3c2d60e1 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -60,24 +60,8 @@ See https://github.com/doctrine/dbal/pull/4317 --> - - - - - - - - - -