We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1116447 commit 83021c5Copy full SHA for 83021c5
UPGRADE-2.0.md
@@ -1,6 +1,10 @@
1
UPGRADE FROM 1.x to 2.0
2
=======================
3
4
+ * Add return type to implementations of `MongoDB\BSON\Serializable::bsonSerialize()`,
5
+ with `array|\stdClass|Document|PackedArray` or a subset of this union type.
6
+ * Add parameter and return type to implementations of `MongoDB\BSON\Unserializable`
7
+ to comply with the `bsonUnserialize(array $data): void` signature.
8
* The `getServer()` method has been removed from the CommandFailedEvent,
9
CommandStartedEvent, and CommandSucceededEvent event classes. The `getHost()`
10
and `getPort()` methods have been added in its place.
0 commit comments