Skip to content

Commit a46f276

Browse files
committed
Fix type documentation for Count and Distinct $filter arg
1 parent f2c1021 commit a46f276

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Operation/Count.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class Count implements Executable
3939
* * skip (integer): The number of documents to skip before returning the
4040
* documents.
4141
*
42-
* @param string $databaseName Database name
43-
* @param string $collectionName Collection name
44-
* @param array $filter Query by which to filter documents
45-
* @param array $options Command options
42+
* @param string $databaseName Database name
43+
* @param string $collectionName Collection name
44+
* @param array|object $filter Query by which to filter documents
45+
* @param array $options Command options
4646
* @throws InvalidArgumentException
4747
*/
4848
public function __construct($databaseName, $collectionName, $filter = array(), array $options = array())

src/Operation/Distinct.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class Distinct implements Executable
3232
* * maxTimeMS (integer): The maximum amount of time to allow the query to
3333
* run.
3434
*
35-
* @param string $databaseName Database name
36-
* @param string $collectionName Collection name
37-
* @param string $fieldName Field for which to return distinct values
38-
* @param array $filter Query by which to filter documents
39-
* @param array $options Command options
35+
* @param string $databaseName Database name
36+
* @param string $collectionName Collection name
37+
* @param string $fieldName Field for which to return distinct values
38+
* @param array|object $filter Query by which to filter documents
39+
* @param array $options Command options
4040
* @throws InvalidArgumentException
4141
*/
4242
public function __construct($databaseName, $collectionName, $fieldName, $filter = array(), array $options = array())

0 commit comments

Comments
 (0)