Skip to content

Commit

Permalink
Remove useless assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Jul 27, 2023
1 parent 91a1a0c commit bc0de5c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ChangeStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
namespace MongoDB;

use Iterator;
use MongoDB\BSON\Document;
use MongoDB\Codec\DocumentCodec;
use MongoDB\Driver\CursorId;
use MongoDB\Driver\Exception\ConnectionException;
Expand All @@ -29,7 +28,6 @@
use MongoDB\Model\ChangeStreamIterator;
use ReturnTypeWillChange;

use function assert;
use function call_user_func;
use function in_array;

Expand Down Expand Up @@ -116,8 +114,6 @@ public function current()
return $value;
}

assert($value === null || $value instanceof Document);

return $this->codec->decodeIfSupported($value);
}

Expand Down

0 comments on commit bc0de5c

Please sign in to comment.