Skip to content

Commit 097ea08

Browse files
committed
PHPLIB-152: Use 1 instead of -1 for FindOne limit
1 parent cbe03b2 commit 097ea08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operation/FindOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct($databaseName, $collectionName, $filter, array $opti
6262
$databaseName,
6363
$collectionName,
6464
$filter,
65-
['limit' => -1] + $options
65+
['limit' => 1] + $options
6666
);
6767

6868
$this->options = $options;

0 commit comments

Comments
 (0)