Commit 3a1b66a2 authored by Jens Segers's avatar Jens Segers

Fix typo

parent 785d602d
......@@ -2,6 +2,7 @@
use Exception;
use MongoDB\Collection as MongoCollection;
use MongoDB\BSON\ObjectID;
class Collection
{
......@@ -48,13 +49,14 @@ class Collection
$query = [];
// Convert the query paramters to a json string.
// Convert the query parameters to a json string.
array_walk_recursive($parameters, function (&$item, $key) {
if ($item instanceof \MongoDB\BSON\ObjectID) {
if ($item instanceof ObjectID) {
$item = (string) $item;
}
});
// Convert the query parameters to a json string.
foreach ($parameters as $parameter) {
try {
$query[] = json_encode($parameter);
......
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