Skip to content

Commit c8b679d

Browse files
committed
Revert readConcern in createCommandDocument
1 parent 1c2f5e1 commit c8b679d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Operation/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private function createCommandDocument(): array
202202
$cmd['hint'] = is_array($this->options['hint']) ? (object) $this->options['hint'] : $this->options['hint'];
203203
}
204204

205-
foreach (['comment', 'limit', 'maxTimeMS', 'skip', 'readConcern'] as $option) {
205+
foreach (['comment', 'limit', 'maxTimeMS', 'skip'] as $option) {
206206
if (isset($this->options[$option])) {
207207
$cmd[$option] = $this->options[$option];
208208
}

src/Operation/FindAndModify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private function createCommandDocument(): array
305305
: (object) $this->options['update'];
306306
}
307307

308-
foreach (['arrayFilters', 'bypassDocumentValidation', 'comment', 'hint', 'maxTimeMS', 'readConcern'] as $option) {
308+
foreach (['arrayFilters', 'bypassDocumentValidation', 'comment', 'hint', 'maxTimeMS'] as $option) {
309309
if (isset($this->options[$option])) {
310310
$cmd[$option] = $this->options[$option];
311311
}

0 commit comments

Comments
 (0)