From b65aa9137ef4453d3bccaf1f7fb3159684f61a61 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Fri, 26 Jun 2020 18:33:22 -0700 Subject: [PATCH] Deprecate ServerInfoAwareConnection#requiresQueryForServerVersion() as an implementation detail --- UPGRADE.md | 4 ++++ lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index 8fab44e6ab8..10eb5e062d5 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 2.11 +##`ServerInfoAwareConnection::requiresQueryForServerVersion()` is deprecated. + +The `ServerInfoAwareConnection::requiresQueryForServerVersion()` method has been deprecated as an implementation detail which is the same for almost all supported drivers. + ## Statement constructors are marked internal The driver and wrapper statement objects can be only created by the corresponding connection objects. diff --git a/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php b/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php index c97a60fa356..78ac3fda8e3 100644 --- a/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php +++ b/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php @@ -17,6 +17,8 @@ public function getServerVersion(); /** * Checks whether a query is required to retrieve the database server version. * + * @deprecated + * * @return bool True if a query is required to retrieve the database server version, false otherwise. */ public function requiresQueryForServerVersion();