Skip to content

Commit

Permalink
Add upgrade note
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Sep 18, 2024
1 parent c4ee635 commit 4aebdee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ UPGRADE FROM 1.x to 2.0
and `getPort()` methods have been added in its place.
* The BSON functions in the `MongoDB\BSON` namespace have been removed in favor
of the `MongoDB\BSON\Document` class.
* All tentative return types defined in interface and non-final classes are now
fixed and are required in implementing or extending classes.
* `MongoDB\Driver\CursorInterface` now extends `Iterator`, requiring
implementing classes to also implement iterator methods. The return types for
the `key` and `current` methods have been narrowed to the types returned by
cursor instances.

0 comments on commit 4aebdee

Please sign in to comment.