We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a3164 commit 8f634ddCopy full SHA for 8f634dd
src/ChangeStream.php
@@ -114,7 +114,7 @@ public function current()
114
return $value;
115
}
116
117
- return $this->codec->decodeIfSupported($value);
+ return $this->codec->decode($value);
118
119
120
/** @return CursorId */
src/Operation/FindAndModify.php
@@ -262,8 +262,7 @@ public function execute(Server $server)
262
$result = current($cursor->toArray());
263
assert($result instanceof Document);
264
265
- $decoded = $this->options['codec']->decodeIfSupported($result->get('value'));
266
- assert($decoded === null || is_object($decoded));
+ $decoded = $this->options['codec']->decode($result->get('value'));
267
268
return $decoded;
269
0 commit comments