Skip to content

Commit 2087010

Browse files
committed
PHPLIB-1489 Address CursorId in ChangeStream
1 parent 45998dd commit 2087010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChangeStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private function onIteration(bool $incrementKey): void
261261
* have been received in the last response. Therefore, we can unset the
262262
* resumeCallable. This will free any reference to Watch as well as the
263263
* only reference to any implicit session created therein. */
264-
if ((string) $this->getCursorId() === '0') {
264+
if ((string) $this->getCursorId(true) === '0') {
265265
$this->resumeCallable = null;
266266
}
267267

0 commit comments

Comments
 (0)