Skip to content

Commit c5db761

Browse files
committed
Add missing types in reference doc
1 parent 339b8a2 commit c5db761

29 files changed

+29
-29
lines changed

docs/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

docs/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

docs/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

docs/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

docs/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

docs/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

docs/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

docs/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

docs/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

docs/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

docs/reference/method/MongoDBCollection-findOneAndReplace.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 findOneAndReplace($filter, $replacement, array $options = []): object|null
22+
function findOneAndReplace(array|object $filter, array|object $replacement, array $options = []): object|null
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBCollection-findOneAndUpdate.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 findOneAndUpdate($filter, $update, array $options = []): object|null
22+
function findOneAndUpdate(array|object $filter, array|object $update, array $options = []): object|null
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBCollection-insertOne.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 insertOne($document, array $options = []): MongoDB\InsertOneResult
22+
function insertOne(array|object $document, array $options = []): MongoDB\InsertOneResult
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBCollection-mapReduce.txt

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

2525
.. code-block:: php
2626

27-
function mapReduce($map, $reduce, $out, array $options = []): MongoDB\MapReduceResult
27+
function mapReduce(MongoDB\BSON\JavascriptInterface $map, MongoDB\BSON\JavascriptInterface $reduce, string|array|object $out, array $options = []): MongoDB\MapReduceResult
2828

2929
This method has the following parameters:
3030

docs/reference/method/MongoDBCollection-replaceOne.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 replaceOne($filter, $replacement, array $options = []): MongoDB\UpdateResult
24+
function replaceOne(array|object $filter, array|object $replacement, array $options = []): MongoDB\UpdateResult
2525

2626
This method has the following parameters:
2727

docs/reference/method/MongoDBCollection-updateMany.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 updateMany($filter, $update, array $options = []): MongoDB\UpdateResult
22+
function updateMany(array|object $filter, array|object $update, array $options = []): MongoDB\UpdateResult
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBCollection-updateOne.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 updateOne($filter, $update, array $options = []): MongoDB\UpdateResult
24+
function updateOne(array|object $filter, array|object $update, array $options = []): MongoDB\UpdateResult
2525

2626
This method has the following parameters:
2727

docs/reference/method/MongoDBDatabase-command.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 command($command, array $options = []): MongoDB\Driver\Cursor
24+
function command(array|object $command, array $options = []): MongoDB\Driver\Cursor
2525

2626
This method has the following parameters:
2727

docs/reference/method/MongoDBDatabase-createCollection.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 createCollection($collectionName, array $options = []): array|object
22+
function createCollection(string $collectionName, array $options = []): array|object
2323

2424
MongoDB creates collections implicitly when you first reference the
2525
collection in a command, such as when inserting a document into a new

docs/reference/method/MongoDBDatabase-dropCollection.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 dropCollection($collectionName, array $options = []): array|object
22+
function dropCollection(string $collectionName, array $options = []): array|object
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBDatabase-modifyCollection.txt

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

2323
.. code-block:: php
2424

25-
function modifyCollection($collectionName, array $collectionOptions, array $options = []): array|object
25+
function modifyCollection(string $collectionName, array $collectionOptions, array $options = []): array|object
2626

2727
This method has the following parameters:
2828

docs/reference/method/MongoDBDatabase-selectCollection.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 selectCollection($collectionName, array $options = []): MongoDB\Collection
22+
function selectCollection(string $collectionName, array $options = []): MongoDB\Collection
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBDatabase__get.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 __get($collectionName): MongoDB\Collection
22+
function __get(string $collectionName): MongoDB\Collection
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBGridFSBucket-downloadToStreamByName.txt

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

2121
.. code-block:: php
2222

23-
function downloadToStreamByName(string $filename, $destination, array $options = []): void
23+
function downloadToStreamByName(string $filename, resource $destination, array $options = []): void
2424

2525
This method has the following parameters:
2626

docs/reference/method/MongoDBGridFSBucket-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

docs/reference/method/MongoDBGridFSBucket-findOne.txt

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

2121
.. code-block:: php
2222

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

2525
This method has the following parameters:
2626

docs/reference/method/MongoDBGridFSBucket-getFileDocumentForStream.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 getFileDocumentForStream($stream): array|object
22+
function getFileDocumentForStream(resource $stream): array|object
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBGridFSBucket-getFileIdForStream.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 getFileIdForStream($stream): mixed
22+
function getFileIdForStream(resource $stream): mixed
2323

2424
This method has the following parameters:
2525

docs/reference/method/MongoDBGridFSBucket-uploadFromStream.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 uploadFromStream(string $filename, $source, array $options = []): mixed
22+
function uploadFromStream(string $filename, resource $source, array $options = []): mixed
2323

2424
This method has the following parameters:
2525

0 commit comments

Comments
 (0)