Skip to content

Commit 29743f8

Browse files
Merge v1.20 into v1.x (#1416)
2 parents 89fb97a + 45998dd commit 29743f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operation/Watch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ final public function commandSucceeded(CommandSucceededEvent $event): void
317317
}
318318

319319
if (
320-
$this->shouldCaptureOperationTime($event->getServer()) &&
320+
$this->shouldCaptureOperationTime() &&
321321
isset($reply->operationTime) && $reply->operationTime instanceof TimestampInterface
322322
) {
323323
$this->operationTime = $reply->operationTime;
@@ -433,7 +433,7 @@ private function resume(array|object|null $resumeToken = null, bool $hasAdvanced
433433
*
434434
* @see https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#startatoperationtime
435435
*/
436-
private function shouldCaptureOperationTime(Server $server): bool
436+
private function shouldCaptureOperationTime(): bool
437437
{
438438
if ($this->hasResumed) {
439439
return false;

0 commit comments

Comments
 (0)