Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit bf98158

Browse files
committed
Invalid type map class throws InvalidArgumentException
1 parent a143f81 commit bf98158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serialization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ iterate over the array and set the properties without modifications. It
282282

283283
/* typemap: [ "root" => "MyClass" ] */
284284
{ "foo": "yes", "__pclass" : { "$type": "80", "$binary": "MyClass" } }
285-
-> MongoDB\Driver\Exception\UnexpectedValueException("MyClass does not implement Unserializable interface")
285+
-> MongoDB\Driver\Exception\InvalidArgumentException("MyClass does not implement Unserializable interface")
286286

287287
/* typemap: [ "root" => "MongoDB\BSON\Unserializable" ] */
288288
{ "foo": "yes" }
289-
-> MongoDB\Driver\Exception\UnexpectedValueException("Unserializable is not a concrete class")
289+
-> MongoDB\Driver\Exception\InvalidArgumentException("Unserializable is not a concrete class")
290290

291291
/* typemap: [ "root" => "YourClass" ] */
292292
{ "foo": "yes", "__pclass" : { "$type": "80", "$binary": "MongoDB\BSON\Unserializable" } }

0 commit comments

Comments
 (0)