File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ UPGRADE FROM 1.x to 2.0
9
9
* The constants ` MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW ` and
10
10
` MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW ` have been
11
11
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.
12
16
* All tentative return types defined in interface and non-final classes are now
13
17
fixed and are required in implementing or extending classes.
14
18
* ` MongoDB\Driver\CursorInterface ` now extends ` Iterator ` , requiring
You can’t perform that action at this time.
0 commit comments