Commit ddd50909 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-152: Use 1 instead of -1 for FindOne limit

parent 658dd568
...@@ -62,7 +62,7 @@ class FindOne implements Executable ...@@ -62,7 +62,7 @@ class FindOne implements Executable
$databaseName, $databaseName,
$collectionName, $collectionName,
$filter, $filter,
['limit' => -1] + $options ['limit' => 1] + $options
); );
$this->options = $options; $this->options = $options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment