From af7644edf7e418935b3042fecc106a6557e8dc48 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 1 Jul 2020 16:20:56 -0700 Subject: [PATCH 1/2] DBALException::invalidPlatformType() is unused as of v2.7.0 --- UPGRADE.md | 4 ++++ lib/Doctrine/DBAL/DBALException.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index d8cf618481d..848662992de 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 2.11 +## `DBALException` factory method deprecations + +1. `DBALException::invalidPlatformType()` is deprecated as unused as of v2.7.0. + ## `AbstractPlatform::fixSchemaElementName()` is deprecated. The method is not used anywhere except for tests. diff --git a/lib/Doctrine/DBAL/DBALException.php b/lib/Doctrine/DBAL/DBALException.php index 9a85c110bb8..65f6298b5fe 100644 --- a/lib/Doctrine/DBAL/DBALException.php +++ b/lib/Doctrine/DBAL/DBALException.php @@ -38,6 +38,9 @@ public static function notSupported($method) return new self(sprintf("Operation '%s' is not supported by platform.", $method)); } + /** + * @deprecated Use {@link invalidPlatformType()} instead. + */ public static function invalidPlatformSpecified(): self { return new self( From 0fe1dc4ba0cc8c62fabb9055e645d6ed325d9d61 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 1 Jul 2020 16:24:51 -0700 Subject: [PATCH 2/2] The usage of user-provided PDO instance is deprecated as of v2.10.0 --- UPGRADE.md | 1 + lib/Doctrine/DBAL/DBALException.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index 848662992de..9898e669d57 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -3,6 +3,7 @@ ## `DBALException` factory method deprecations 1. `DBALException::invalidPlatformType()` is deprecated as unused as of v2.7.0. +2. `DBALException::invalidPdoInstance()` as passing a PDO instance via configuration is deprecated. ## `AbstractPlatform::fixSchemaElementName()` is deprecated. diff --git a/lib/Doctrine/DBAL/DBALException.php b/lib/Doctrine/DBAL/DBALException.php index 65f6298b5fe..18ca800f330 100644 --- a/lib/Doctrine/DBAL/DBALException.php +++ b/lib/Doctrine/DBAL/DBALException.php @@ -93,6 +93,8 @@ public static function invalidPlatformVersionSpecified($version, $expectedFormat } /** + * @deprecated Passing a PDO instance in connection parameters is deprecated. + * * @return DBALException */ public static function invalidPdoInstance()