Skip to content

Commit c76ea21

Browse files
Merge v1.18 into master (#1300)
2 parents 59b33a6 + abf3174 commit c76ea21

14 files changed

+26
-91
lines changed

.github/workflows/docs.yml

-62
This file was deleted.

.github/workflows/merge-up.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ jobs:
2929
ref: ${{ github.ref_name }}
3030
branchNamePattern: 'v<major>.<minor>'
3131
fallbackBranch: 'master'
32+
enableAutoMerge: true
+10-11
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
1+
ref: _option-requires-version
2+
content: |
3+
This option is available since MongoDB {{version}} and will result in an
4+
exception at execution time if specified for an older server version.
15
---
26
ref: option-requires-4.2
37
source:
4-
ref: option-requires-version
58
file: extracts-option-requires.yaml
9+
ref: _option-requires-version
610
replacement:
711
version: "4.2"
812
---
913
ref: option-requires-4.4
1014
source:
11-
ref: option-requires-version
1215
file: extracts-option-requires.yaml
16+
ref: _option-requires-version
1317
replacement:
1418
version: "4.4"
1519
---
1620
ref: option-requires-5.0
1721
source:
18-
ref: option-requires-version
1922
file: extracts-option-requires.yaml
23+
ref: _option-requires-version
2024
replacement:
2125
version: "5.0"
2226
---
2327
ref: option-requires-5.3
2428
source:
25-
ref: option-requires-version
2629
file: extracts-option-requires.yaml
30+
ref: _option-requires-version
2731
replacement:
2832
version: "5.3"
2933
---
3034
ref: option-requires-6.0
3135
source:
32-
ref: option-requires-version
3336
file: extracts-option-requires.yaml
37+
ref: _option-requires-version
3438
replacement:
3539
version: "6.0"
3640
---
3741
ref: option-requires-7.0
3842
source:
39-
ref: option-requires-version
4043
file: extracts-option-requires.yaml
44+
ref: _option-requires-version
4145
replacement:
4246
version: "7.0"
43-
---
44-
ref: option-requires-version
45-
content: |
46-
This option is available since MongoDB {{version}} and will result in an
47-
exception at execution time if specified for an older server version.
4847
...

docs/reference.txt

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ API Documentation
1212
/reference/class/MongoDBDatabase
1313
/reference/class/MongoDBCollection
1414
/reference/class/MongoDBGridFSBucket
15-
/reference/write-result-classes
1615
/reference/result-classes
17-
/reference/enumeration-classes
1816
/reference/functions
1917
/reference/exception-classes

docs/reference/method/MongoDBCollection-bulkWrite.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ Parameters
3030
``$operations`` : array
3131
An array containing the write operations to perform.
3232
:phpmethod:`MongoDB\Collection::bulkWrite()` supports
33-
:phpmethod:`deleteMany() <MongoDB\Collection::deleteMany>`,
34-
:phpmethod:`deleteOne() <MongoDB\Collection::deleteOne>`,
35-
:phpmethod:`insertOne() <MongoDB\Collection::insertOne>`,
36-
:phpmethod:`replaceOne() <MongoDB\Collection::replaceOne>`,
37-
:phpmethod:`updateMany() <MongoDB\Collection::updateMany>`, and
38-
:phpmethod:`updateOne() <MongoDB\Collection::updateOne>` operations in the
33+
:phpmethod:`MongoDB\Collection::deleteMany()`,
34+
:phpmethod:`MongoDB\Collection::deleteOne()`,
35+
:phpmethod:`MongoDB\Collection::insertOne()`,
36+
:phpmethod:`MongoDB\Collection::replaceOne()`,
37+
:phpmethod:`MongoDB\Collection::updateMany()`, and
38+
:phpmethod:`MongoDB\Collection::updateOne()` operations in the
3939
following array structure:
4040

4141
.. code-block:: php

docs/reference/method/MongoDBCollection-dropIndex.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ Parameters
2929

3030
``$indexName`` : string| :phpclass:`MongoDB\Model\IndexInfo`
3131
The name or model object of the index to drop. View the existing indexes on
32-
the collection using the :phpmethod:`listIndexes()
33-
<MongoDB\Collection::listIndexes>` method.
32+
the collection by using the :phpmethod:`MongoDB\Collection::listIndexes()` method.
3433

3534
``$options`` : array
3635
An array specifying the desired options.

docs/reference/method/MongoDBCollection-dropIndexes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Parameters
2828
``$indexName`` : string| :phpclass:`MongoDB\Model\IndexInfo`
2929
The name or model object of the index to drop. View the existing indexes on
3030
the collection using the :phpmethod:`listIndexes()
31-
<MongoDB\Collection::listIndexes>` method.
31+
<MongoDB\Collection::listIndexes()>` method.
3232

3333
``$options`` : array
3434
An array specifying the desired options.

docs/reference/method/MongoDBCollection-explain.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Definition
2929
Parameters
3030
----------
3131

32-
``$explainable`` : :phpclass:`MongoDB\Operation\Explainable`
32+
``$explainable`` : ``MongoDB\Operation\Explainable``
3333
The command to explain.
3434

3535
``$options`` : array

docs/reference/method/MongoDBCollection-findOneAndUpdate.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Parameters
3333

3434
``$update`` : array|object
3535
Specifies the field and value combinations to update and any relevant update
36-
operators. ``$update`` uses MongoDB's :method:`update operators
36+
operators. ``$update`` uses MongoDB's :manual:`update operators
3737
</reference/operator/update>`. Starting with MongoDB 4.2, an `aggregation
3838
pipeline <https://mongodb.com/docs/master/reference/command/update/#update-with-an-aggregation-pipeline>`_
3939
can be passed as this parameter.

docs/reference/method/MongoDBCollection-updateMany.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Parameters
3333

3434
``$update`` : array|object
3535
Specifies the field and value combinations to update and any relevant update
36-
operators. ``$update`` uses MongoDB's :method:`update operators
36+
operators. ``$update`` uses MongoDB's :manual:`update operators
3737
</reference/operator/update>`. Starting with MongoDB 4.2, an `aggregation
3838
pipeline <https://mongodb.com/docs/master/reference/command/update/#update-with-an-aggregation-pipeline>`_
3939
can be passed as this parameter.

docs/reference/method/MongoDBCollection-updateOne.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Parameters
3535

3636
``$update`` : array|object
3737
Specifies the field and value combinations to update and any relevant update
38-
operators. ``$update`` uses MongoDB's :method:`update operators
38+
operators. ``$update`` uses MongoDB's :manual:`update operators
3939
</reference/operator/update>`. Starting with MongoDB 4.2, an `aggregation
4040
pipeline <https://mongodb.com/docs/master/reference/command/update/#update-with-an-aggregation-pipeline>`_
4141
can be passed as this parameter.

docs/reference/method/MongoDBDatabase-createCollection.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Parameters
296296
rules or expressions. You can specify the expressions using the same
297297
operators as MongoDB's
298298
:manual:`query operators </reference/operator/query>` with the
299-
exception of :query:`$geoNear`, :query:`$near`, :query:`$nearSphere`,
299+
exception of :query:`$near`, :query:`$nearSphere`,
300300
:query:`$text`, and :query:`$where`.
301301

302302
.. note::

docs/reference/result-classes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Result Classes
1010
BulkWriteResult Class </reference/class/MongoDBBulkWriteResult>
1111
DeleteResult Class </reference/class/MongoDBDeleteResult>
1212
InsertManyResult Class </reference/class/MongoDBInsertManyResult>
13-
InsertOneResult Class </reference/class/MongoDInsertOneResult>
13+
InsertOneResult Class </reference/class/MongoDBInsertOneResult>
1414
UpdateResult Class </reference/class/MongoDBUpdateResult>
1515
ChangeStream Class </reference/class/MongoDBChangeStream>
1616
MapReduceResult Class </reference/class/MongoDBMapReduceResult>

docs/tutorial/gridfs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The bucket can be constructed with various options:
3535
needed. The default size is ``261120`` (i.e. 255 KiB).
3636
- ``readConcern``, ``readPreference`` and ``writeConcern`` options can be used
3737
to specify defaults for read and write operations, much like the
38-
:phpclass:`MongoDB\GridFS\Collection` options.
38+
:phpclass:`MongoDB\Collection` options.
3939

4040
Uploading Files with Writable Streams
4141
-------------------------------------

0 commit comments

Comments
 (0)