Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
UPGRADE FROM 1.x to 2.0
=======================

* Add return type to implementations of `MongoDB\BSON\Serializable::bsonSerialize()`,
with `array|\stdClass|Document|PackedArray` or a subset of this union type.
* Add parameter and return type to implementations of `MongoDB\BSON\Unserializable`
to comply with the `bsonUnserialize(array $data): void` signature.
* The `getServer()` method has been removed from the CommandFailedEvent,
CommandStartedEvent, and CommandSucceededEvent event classes. The `getHost()`
and `getPort()` methods have been added in its place.
Expand Down
Loading