Skip to content

Commit fc1f63f

Browse files
committed
Add upgrade note
1 parent e9dbc8b commit fc1f63f

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
@@ -6,3 +6,9 @@ UPGRADE FROM 1.x to 2.0
66
and `getPort()` methods have been added in its place.
77
* The BSON functions in the `MongoDB\BSON` namespace have been removed in favor
88
of the `MongoDB\BSON\Document` class.
9+
* All tentative return types defined in interface and non-final classes are now
10+
fixed and are required in implementing or extending classes.
11+
* `MongoDB\Driver\CursorInterface` now extends `Iterator`, requiring
12+
implementing classes to also implement iterator methods. The return types for
13+
the `key` and `current` methods have been narrowed to the types returned by
14+
cursor instances.

0 commit comments

Comments
 (0)