Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jun 3, 2018
2 parents 592941b + 74b3ca5 commit 657cc79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function aggregate($options, $extra)
'aggregate' => $options['table'],
'allowDiskUse' => true,
'pipeline' => $pipeline,
'cursor' => \stdClass,
'cursor' => new \stdClass,
];

foreach (['explain', 'collation', 'bypassDocumentValidation', 'readConcern'] as $option) {
Expand Down
2 changes: 0 additions & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use MongoDB\BSON\ObjectID;
use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\Command;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\Exception\AuthenticationException;
use MongoDB\Driver\Exception\BulkWriteException;
use MongoDB\Driver\Exception\ConnectionException;
Expand All @@ -22,7 +21,6 @@
use MongoDB\Driver\Query as MongoQuery;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\WriteConcern;
use think\Collection;
use think\Db;
use think\Debug;
use think\Exception;
Expand Down

0 comments on commit 657cc79

Please sign in to comment.