Skip to content

Commit a72c25b

Browse files
GromNaNjmikola
andauthored
PHPLIB-1056: Add missing types in reference doc (#1076)
Co-authored-by: Jeremy Mikola <[email protected]>
1 parent acf59ea commit a72c25b

29 files changed

+29
-29
lines changed

source/reference/method/MongoDBCollection-count.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Definition
2121

2222
.. code-block:: php
2323

24-
function count($filter = [], array $options = []): integer
24+
function count(array|object $filter = [], array $options = []): integer
2525

2626
This method has the following parameters:
2727

source/reference/method/MongoDBCollection-countDocuments.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Definition
2121

2222
.. code-block:: php
2323

24-
function countDocuments($filter = [], array $options = []): integer
24+
function countDocuments(array|object $filter = [], array $options = []): integer
2525

2626
This method has the following parameters:
2727

source/reference/method/MongoDBCollection-createIndex.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function createIndex($key, array $options = []): string
22+
function createIndex(array|object $key, array $options = []): string
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-deleteMany.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function deleteMany($filter, array $options = []): MongoDB\DeleteResult
22+
function deleteMany(array|object $filter, array $options = []): MongoDB\DeleteResult
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-deleteOne.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Definition
2121

2222
.. code-block:: php
2323

24-
function deleteOne($filter, array $options = []): MongoDB\DeleteResult
24+
function deleteOne(array|object $filter, array $options = []): MongoDB\DeleteResult
2525

2626
This method has the following parameters:
2727

source/reference/method/MongoDBCollection-distinct.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function distinct(string $fieldName, $filter = [], array $options = []): mixed[]
22+
function distinct(string $fieldName, array|object $filter = [], array $options = []): mixed[]
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-dropIndex.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function dropIndex($indexName, array $options = []): array|object
22+
function dropIndex(string|MongoDB\Model\IndexInfo $indexName, array $options = []): array|object
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-find.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function find($filter = [], array $options = []): MongoDB\Driver\Cursor
22+
function find(array|object $filter = [], array $options = []): MongoDB\Driver\Cursor
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-findOne.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function findOne($filter = [], array $options = []): array|object|null
22+
function findOne(array|object $filter = [], array $options = []): array|object|null
2323

2424
This method has the following parameters:
2525

source/reference/method/MongoDBCollection-findOneAndDelete.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Definition
1919

2020
.. code-block:: php
2121

22-
function findOneAndDelete($filter = [], array $options = []): object|null
22+
function findOneAndDelete(array|object $filter = [], array $options = []): object|null
2323

2424
This method has the following parameters:
2525

0 commit comments

Comments
 (0)