Skip to content

Commit 45998dd

Browse files
authored
PHPLIB-1529 Remove usage of deprecated event getServer (mongodb#1415)
1 parent c5a384a commit 45998dd

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
@@ -324,7 +324,7 @@ final public function commandSucceeded(CommandSucceededEvent $event): void
324324
}
325325

326326
if (
327-
$this->shouldCaptureOperationTime($event->getServer()) &&
327+
$this->shouldCaptureOperationTime() &&
328328
isset($reply->operationTime) && $reply->operationTime instanceof TimestampInterface
329329
) {
330330
$this->operationTime = $reply->operationTime;
@@ -445,7 +445,7 @@ private function resume($resumeToken = null, bool $hasAdvanced = false): ChangeS
445445
*
446446
* @see https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#startatoperationtime
447447
*/
448-
private function shouldCaptureOperationTime(Server $server): bool
448+
private function shouldCaptureOperationTime(): bool
449449
{
450450
if ($this->hasResumed) {
451451
return false;

0 commit comments

Comments
 (0)