diff --git a/UPGRADE.md b/UPGRADE.md index 63dd8b279dd..49026ba922f 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 2.11 +## Deprecated `Doctrine\DBAL\Version` class + +The usage of the `Doctrine\DBAL\Version` class is deprecated as internal implementation detail. Please refrain from checking the DBAL version at runtime. + ## Deprecated `ExpressionBuilder` methods The usage of the `andX()` and `orX()` methods of the `ExpressionBuilder` class has been deprecated. Use `and()` and `or()` instead. diff --git a/lib/Doctrine/DBAL/Version.php b/lib/Doctrine/DBAL/Version.php index e5e4b9566f6..7c552d537c3 100644 --- a/lib/Doctrine/DBAL/Version.php +++ b/lib/Doctrine/DBAL/Version.php @@ -8,6 +8,9 @@ /** * Class to store and retrieve the version of Doctrine. + * + * @internal + * @deprecated Refrain from checking the DBAL version at runtime. */ class Version {