Skip to content

Commit cf59499

Browse files
jmikolaalcaeus
authored andcommitted
Add upgrade note
1 parent 9ea03e9 commit cf59499

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADE-2.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ UPGRADE FROM 1.x to 2.0
99
* The constants `MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW` and
1010
`MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW` have been
1111
removed. Use the `ALGORITHM_RANGE` and `QUERY_TYPE_RANGE` instead.
12+
* The `MongoDB\Driver\ReadPreference` class now requires a string value for its
13+
constructor's `$mode` parameter. The integer constants for modes have been
14+
removed along with the `getMode()` method. Use the string constants and
15+
`getModeString()` instead.
1216
* All tentative return types defined in interface and non-final classes are now
1317
fixed and are required in implementing or extending classes.
1418
* `MongoDB\Driver\CursorInterface` now extends `Iterator`, requiring

0 commit comments

Comments
 (0)