Skip to content

Commit ddf31af

Browse files
committed
Add upgrade note
1 parent 1fa09bd commit ddf31af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UPGRADE-2.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ 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+
* All tentative return types defined in interface and non-final classes are now
13+
fixed and are required in implementing or extending classes.
14+
* `MongoDB\Driver\CursorInterface` now extends `Iterator`, requiring
15+
implementing classes to also implement iterator methods. The return types for
16+
the `key` and `current` methods have been narrowed to the types returned by
17+
cursor instances.

0 commit comments

Comments
 (0)