From 0dda366aab2cb791e24f0b4669e083f9589b1014 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Fri, 10 Jun 2022 09:27:26 -0700 Subject: [PATCH] Remove AbstractSchemaManager::getDatabasePlatform() --- UPGRADE.md | 4 ++++ src/Schema/AbstractSchemaManager.php | 20 -------------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index fe731347c93..f24a8cd8099 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -8,6 +8,10 @@ awareness about deprecated code. # Upgrade to 4.0 +## BC BREAK: removed `AbstractSchemaManager::getDatabasePlatform()` + +The `AbstractSchemaManager::getDatabasePlatform()` method has been removed. + ## BC BREAK: removed Schema Visitor API. The following interfaces and classes have been removed: diff --git a/src/Schema/AbstractSchemaManager.php b/src/Schema/AbstractSchemaManager.php index d1fab45a5f5..bf0abcd097e 100644 --- a/src/Schema/AbstractSchemaManager.php +++ b/src/Schema/AbstractSchemaManager.php @@ -13,7 +13,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\Exception\NotSupported; use Doctrine\DBAL\Result; -use Doctrine\Deprecations\Deprecation; use function array_filter; use function array_intersect; @@ -54,25 +53,6 @@ public function __construct(Connection $connection, AbstractPlatform $platform) $this->_platform = $platform; } - /** - * Returns the associated platform. - * - * @deprecated Use {@link Connection::getDatabasePlatform()} instead. - * - * @return T - */ - public function getDatabasePlatform(): AbstractPlatform - { - Deprecation::trigger( - 'doctrine/dbal', - 'https://github.com/doctrine/dbal/pull/5387', - 'AbstractSchemaManager::getDatabasePlatform() is deprecated.' - . ' Use Connection::getDatabasePlatform() instead.' - ); - - return $this->_platform; - } - /** * Lists the available databases for this connection. *