We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa09bd commit ddf31afCopy full SHA for ddf31af
UPGRADE-2.0.md
@@ -9,3 +9,9 @@ UPGRADE FROM 1.x to 2.0
9
* The constants `MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW` and
10
`MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW` have been
11
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