Skip to content

Commit 196075b

Browse files
committed
Add UPGRADE file for 2.0
1 parent 8b7c9a6 commit 196075b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

UPGRADE-2.0.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# UPGRADE FROM 1.x to 2.0
2+
3+
## Backward compatibility breaks
4+
5+
### Return types
6+
7+
All methods and interfaces have now properly defined return types. These
8+
correspond to the types previously present in the `@return` attribute of each
9+
method. A notable exception to this are `MongoDB\Model/CodecCursor::getId` and
10+
`MongoDB\ChangeStream::getCursorId`, which now return a `MongoDB\BSON\Int64`
11+
instance.

0 commit comments

Comments
 (0)