Skip to content

Commit b44164c

Browse files
Nick Dresselhausjmikola
Nick Dresselhaus
authored andcommitted
PHPLIB-189: Fix merging of comment and maxTimeMS options
Previously, the values were set to an empty value, which causes exceptions within the driver.
1 parent 749f0aa commit b44164c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operation/Find.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ private function createQuery()
218218
$modifiers = empty($this->options['modifiers']) ? [] : (array) $this->options['modifiers'];
219219

220220
if (isset($this->options['comment'])) {
221-
$modifiers['$comment'] = $options['comment'];
221+
$modifiers['$comment'] = $this->options['comment'];
222222
}
223223

224224
if (isset($this->options['maxTimeMS'])) {
225-
$modifiers['$maxTimeMS'] = $options['maxTimeMS'];
225+
$modifiers['$maxTimeMS'] = $this->options['maxTimeMS'];
226226
}
227227

228228
if ( ! empty($modifiers)) {

0 commit comments

Comments
 (0)