Skip to content

Commit

Permalink
Merge v1.20 into v1.x (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodb-php-bot authored Sep 18, 2024
2 parents 89fb97a + 45998dd commit 29743f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Operation/Watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ final public function commandSucceeded(CommandSucceededEvent $event): void
}

if (
$this->shouldCaptureOperationTime($event->getServer()) &&
$this->shouldCaptureOperationTime() &&
isset($reply->operationTime) && $reply->operationTime instanceof TimestampInterface
) {
$this->operationTime = $reply->operationTime;
Expand Down Expand Up @@ -433,7 +433,7 @@ private function resume(array|object|null $resumeToken = null, bool $hasAdvanced
*
* @see https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#startatoperationtime
*/
private function shouldCaptureOperationTime(Server $server): bool
private function shouldCaptureOperationTime(): bool
{
if ($this->hasResumed) {
return false;
Expand Down

0 comments on commit 29743f8

Please sign in to comment.