Skip to content

Commit bc0de5c

Browse files
committed
Remove useless assertion
1 parent 91a1a0c commit bc0de5c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ChangeStream.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
namespace MongoDB;
1919

2020
use Iterator;
21-
use MongoDB\BSON\Document;
2221
use MongoDB\Codec\DocumentCodec;
2322
use MongoDB\Driver\CursorId;
2423
use MongoDB\Driver\Exception\ConnectionException;
@@ -29,7 +28,6 @@
2928
use MongoDB\Model\ChangeStreamIterator;
3029
use ReturnTypeWillChange;
3130

32-
use function assert;
3331
use function call_user_func;
3432
use function in_array;
3533

@@ -116,8 +114,6 @@ public function current()
116114
return $value;
117115
}
118116

119-
assert($value === null || $value instanceof Document);
120-
121117
return $this->codec->decodeIfSupported($value);
122118
}
123119

0 commit comments

Comments
 (0)