Skip to content

Commit 3a1b66a

Browse files
committed
Fix typo
1 parent 785d602 commit 3a1b66a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Jenssegers/Mongodb/Collection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Exception;
44
use MongoDB\Collection as MongoCollection;
5+
use MongoDB\BSON\ObjectID;
56

67
class Collection
78
{
@@ -48,13 +49,14 @@ public function __call($method, $parameters)
4849

4950
$query = [];
5051

51-
// Convert the query paramters to a json string.
52+
// Convert the query parameters to a json string.
5253
array_walk_recursive($parameters, function (&$item, $key) {
53-
if ($item instanceof \MongoDB\BSON\ObjectID) {
54+
if ($item instanceof ObjectID) {
5455
$item = (string) $item;
5556
}
5657
});
5758

59+
// Convert the query parameters to a json string.
5860
foreach ($parameters as $parameter) {
5961
try {
6062
$query[] = json_encode($parameter);

0 commit comments

Comments
 (0)