@@ -292,11 +292,11 @@ public function dropIndexes()
292
292
*
293
293
* @see Find::__construct() for supported options
294
294
* @see http://docs.mongodb.org/manual/core/read-operations-introduction/
295
- * @param array $filter Query by which to filter documents
296
- * @param array $options Additional options
295
+ * @param array|object $filter Query by which to filter documents
296
+ * @param array $options Additional options
297
297
* @return Cursor
298
298
*/
299
- public function find (array $ filter = array (), array $ options = array ())
299
+ public function find ($ filter = array (), array $ options = array ())
300
300
{
301
301
$ operation = new Find ($ this ->dbname , $ this ->collname , $ filter , $ options );
302
302
$ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
@@ -309,11 +309,11 @@ public function find(array $filter = array(), array $options = array())
309
309
*
310
310
* @see FindOne::__construct() for supported options
311
311
* @see http://docs.mongodb.org/manual/core/read-operations-introduction/
312
- * @param array $filter The find query to execute
313
- * @param array $options Additional options
312
+ * @param array|object $filter Query by which to filter documents
313
+ * @param array $options Additional options
314
314
* @return object|null
315
315
*/
316
- public function findOne (array $ filter = array (), array $ options = array ())
316
+ public function findOne ($ filter = array (), array $ options = array ())
317
317
{
318
318
$ operation = new FindOne ($ this ->dbname , $ this ->collname , $ filter , $ options );
319
319
$ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
0 commit comments