Skip to content

Commit

Permalink
Merge pull request #3861 from morozov/deprecate-version
Browse files Browse the repository at this point in the history
Deprecated the usage of the Version class
  • Loading branch information
morozov authored Jan 30, 2020
2 parents ae76ccc + 1d0ebf0 commit 9b2db8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions lib/Doctrine/DBAL/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 9b2db8d

Please sign in to comment.