@@ -124,11 +124,11 @@ public function bulkWrite(array $operations, array $options = array())
124124 * Gets the number of documents matching the filter.
125125 *
126126 * @see Count::__construct() for supported options
127- * @param array $filter Query by which to filter documents
128- * @param array $options Command options
127+ * @param array|object $filter Query by which to filter documents
128+ * @param array $options Command options
129129 * @return integer
130130 */
131- public function count (array $ filter = array (), array $ options = array ())
131+ public function count ($ filter = array (), array $ options = array ())
132132 {
133133 $ operation = new Count ($ this ->dbname , $ this ->collname , $ filter , $ options );
134134 $ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
@@ -228,11 +228,11 @@ public function deleteOne($filter, array $options = array())
228228 *
229229 * @see Distinct::__construct() for supported options
230230 * @param string $fieldName Field for which to return distinct values
231- * @param array $filter Query by which to filter documents
232- * @param array $options Command options
231+ * @param array|object $filter Query by which to filter documents
232+ * @param array $options Command options
233233 * @return mixed[]
234234 */
235- public function distinct ($ fieldName , array $ filter = array (), array $ options = array ())
235+ public function distinct ($ fieldName , $ filter = array (), array $ options = array ())
236236 {
237237 $ operation = new Distinct ($ this ->dbname , $ this ->collname , $ fieldName , $ filter , $ options );
238238 $ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
@@ -292,11 +292,11 @@ public function dropIndexes()
292292 *
293293 * @see Find::__construct() for supported options
294294 * @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
297297 * @return Cursor
298298 */
299- public function find (array $ filter = array (), array $ options = array ())
299+ public function find ($ filter = array (), array $ options = array ())
300300 {
301301 $ operation = new Find ($ this ->dbname , $ this ->collname , $ filter , $ options );
302302 $ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
@@ -309,11 +309,11 @@ public function find(array $filter = array(), array $options = array())
309309 *
310310 * @see FindOne::__construct() for supported options
311311 * @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
314314 * @return object|null
315315 */
316- public function findOne (array $ filter = array (), array $ options = array ())
316+ public function findOne ($ filter = array (), array $ options = array ())
317317 {
318318 $ operation = new FindOne ($ this ->dbname , $ this ->collname , $ filter , $ options );
319319 $ server = $ this ->manager ->selectServer (new ReadPreference (ReadPreference::RP_PRIMARY ));
0 commit comments