Skip to content

Commit 5767b4a

Browse files
jmikolanorareidy
andauthored
DOCSP-36627: Additional double backslash fixes for v1.17 (#1243)
Co-authored-by: Nora Reidy <[email protected]>
1 parent 5b3a698 commit 5767b4a

File tree

197 files changed

+1224
-1228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+1224
-1228
lines changed

docs/faq.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The following are all examples of
124124
[TLS handshake failed: certificate verify failed (64): IP address mismatch calling hello on 'b.example.com:27017']
125125

126126
These errors typically manifest as a
127-
:php:`MongoDB\\Driver\\Exception\\ConnectionTimeoutException <mongodb-driver-exception-connectiontimeoutexception>`
127+
:php:`MongoDB\Driver\Exception\ConnectionTimeoutException <mongodb-driver-exception-connectiontimeoutexception>`
128128
exception from the driver. The actual exception messages originate from
129129
libmongoc, which is the underlying library used by the PHP driver. Since these
130130
messages can take many forms, it's helpful to break down the structure of the

docs/includes/extracts-bulkwriteexception.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ref: bulkwriteexception-result
22
content: |
3-
If a :php:`MongoDB\\Driver\\Exception\\BulkWriteException
3+
If a :php:`MongoDB\Driver\Exception\BulkWriteException
44
<mongodb-driver-exception-bulkwriteexception>` is thrown, users should call
55
:php:`getWriteResult() <mongodb-driver-writeexception.getwriteresult>` and
6-
inspect the returned :php:`MongoDB\\Driver\\WriteResult
6+
inspect the returned :php:`MongoDB\Driver\WriteResult
77
<mongodb-driver-writeresult>` object to determine the nature of the error.
88
99
For example, a write operation may have been successfully applied to the

docs/includes/extracts-error.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
ref: error-driver-bulkwriteexception
22
content: |
3-
:php:`MongoDB\\Driver\\Exception\\BulkWriteException
3+
:php:`MongoDB\Driver\Exception\BulkWriteException
44
<mongodb-driver-exception-bulkwriteexception>` for errors related to the write
55
operation. Users should inspect the value returned by :php:`getWriteResult()
66
<mongodb-driver-writeexception.getwriteresult>` to determine the nature of the
77
error.
88
---
99
ref: error-driver-invalidargumentexception
1010
content: |
11-
:php:`MongoDB\\Driver\\Exception\\InvalidArgumentException
11+
:php:`MongoDB\Driver\Exception\InvalidArgumentException
1212
<mongodb-driver-exception-invalidargumentexception>` for errors related to the
1313
parsing of parameters or options at the driver level.
1414
---
1515
ref: error-driver-runtimeexception
1616
content: |
17-
:php:`MongoDB\\Driver\\Exception\\RuntimeException
17+
:php:`MongoDB\Driver\Exception\RuntimeException
1818
<mongodb-driver-exception-runtimeexception>` for other errors at the driver
1919
level (e.g. connection errors).
2020
---
2121
ref: error-badmethodcallexception-write-result
2222
content: |
23-
:phpclass:`MongoDB\\Exception\\BadMethodCallException` if this method is
23+
:phpclass:`MongoDB\Exception\BadMethodCallException` if this method is
2424
called and the write operation used an unacknowledged :manual:`write concern
2525
</reference/write-concern>`.
2626
---
2727
ref: error-invalidargumentexception
2828
content: |
29-
:phpclass:`MongoDB\\Exception\\InvalidArgumentException` for errors related to
29+
:phpclass:`MongoDB\Exception\InvalidArgumentException` for errors related to
3030
the parsing of parameters or options.
3131
---
3232
ref: error-unexpectedvalueexception
3333
content: |
34-
:phpclass:`MongoDB\\Exception\\UnexpectedValueException` if the command
34+
:phpclass:`MongoDB\Exception\UnexpectedValueException` if the command
3535
response from the server was malformed.
3636
---
3737
ref: error-unsupportedexception
3838
content: |
39-
:phpclass:`MongoDB\\Exception\\UnsupportedException` if options are used and
39+
:phpclass:`MongoDB\Exception\UnsupportedException` if options are used and
4040
not supported by the selected server (e.g. ``collation``, ``readConcern``,
4141
``writeConcern``).
4242
---
4343
ref: error-gridfs-filenotfoundexception
4444
content: |
45-
:phpclass:`MongoDB\\GridFS\\Exception\\FileNotFoundException` if no file was
45+
:phpclass:`MongoDB\GridFS\Exception\FileNotFoundException` if no file was
4646
found for the selection criteria.
4747
---
4848
ref: error-gridfs-corruptfileexception
4949
content: |
50-
:phpclass:`MongoDB\\GridFS\\Exception\\CorruptFileException` if the file's
50+
:phpclass:`MongoDB\GridFS\Exception\CorruptFileException` if the file's
5151
metadata or chunk documents contain unexpected or invalid data.
5252
...

docs/includes/extracts-note.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content: |
77
<manual/en/language.types.type-juggling.php>` rules. When matching a special
88
BSON type the query criteria should use the respective :php:`BSON class
99
<manual/en/book.bson.php>` in the driver (e.g. use
10-
:php:`MongoDB\\BSON\\ObjectId <class.mongodb-bson-objectid>` to match an
10+
:php:`MongoDB\BSON\ObjectId <class.mongodb-bson-objectid>` to match an
1111
:manual:`ObjectId </reference/object-id/>`).
1212
---
1313
ref: note-atlas-search-requirement
@@ -22,7 +22,7 @@ ref: note-atlas-search-async
2222
content: |
2323
Atlas Search indexes are managed asynchronously. After creating or updating an
2424
index, you can periodically execute
25-
:phpmethod:`MongoDB\\Collection::listSearchIndexes()` and check the
25+
:phpmethod:`MongoDB\Collection::listSearchIndexes()` and check the
2626
``queryable`` :manual:`output field </reference/operator/aggregation/listSearchIndexes/#output>`
2727
to determine whether it is ready to be used.
2828
...

docs/index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The ``mongodb`` extension provides a limited API to connect to the database and
1212
execute generic commands, queries, and write operations. In contrast, the
1313
|php-library| provides a full-featured API and models client, database, and
1414
collection objects. Each of those classes provide various helper methods for
15-
performing operations in context. For example, :phpclass:`MongoDB\\Collection`
15+
performing operations in context. For example, :phpclass:`MongoDB\Collection`
1616
implements methods for executing CRUD operations and managing indexes on the
1717
collection, among other things.
1818

docs/reference/bson.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ of JSON documents, though it contains more data types than JSON. For the BSON
1818
spec, see `bsonspec.org <https://bsonspec.org/>`_.
1919

2020
By default, the |php-library| returns BSON documents as
21-
:phpclass:`MongoDB\\Model\\BSONDocument` objects and BSON arrays as
22-
:phpclass:`MongoDB\\Model\\BSONArray` objects, respectively.
21+
:phpclass:`MongoDB\Model\BSONDocument` objects and BSON arrays as
22+
:phpclass:`MongoDB\Model\BSONArray` objects, respectively.
2323

2424
Classes
2525
-------
2626

27-
.. phpclass:: MongoDB\\Model\\BSONArray
27+
.. phpclass:: MongoDB\Model\BSONArray
2828

2929
This class extends PHP's :php:`ArrayObject <arrayobject>` class. It also
3030
implements PHP's :php:`JsonSerializable <jsonserializable>` interface and the
31-
driver's :php:`MongoDB\\BSON\\Serializable <mongodb-bson-serializable>` and
32-
:php:`MongoDB\\BSON\\Unserializable <mongodb-bson-unserializable>`
31+
driver's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
32+
:php:`MongoDB\BSON\Unserializable <mongodb-bson-unserializable>`
3333
interfaces.
3434

3535
By default, the library will deserialize BSON arrays as instances of this
3636
class. During BSON and JSON serialization, instances of this class will
3737
serialize as an array type (:php:`array_values() <array_values>` is used
3838
internally to numerically reindex the array).
3939

40-
.. phpclass:: MongoDB\\Model\\BSONDocument
40+
.. phpclass:: MongoDB\Model\BSONDocument
4141

4242
This class extends PHP's :php:`ArrayObject <arrayobject>` class. It also
4343
implements PHP's :php:`JsonSerializable <jsonserializable>` interface and the
44-
driver's :php:`MongoDB\\BSON\\Serializable <mongodb-bson-serializable>` and
45-
:php:`MongoDB\\BSON\\Unserializable <mongodb-bson-unserializable>`
44+
driver's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
45+
:php:`MongoDB\BSON\Unserializable <mongodb-bson-unserializable>`
4646
interfaces.
4747

4848
By default, the library will deserialize BSON documents as instances of this

docs/reference/class/MongoDBBulkWriteResult.txt

+11-12
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ MongoDB\\BulkWriteResult Class
55
Definition
66
----------
77

8-
.. phpclass:: MongoDB\\BulkWriteResult
8+
.. phpclass:: MongoDB\BulkWriteResult
99

1010
This class contains information about an executed bulk write operation. It
11-
encapsulates a :php:`MongoDB\\Driver\\WriteResult
12-
<class.mongodb-driver-writeresult>` object and is returned from
13-
:phpmethod:`MongoDB\\Collection::bulkWrite()`.
11+
encapsulates a :php:`MongoDB\Driver\WriteResult <class.mongodb-driver-writeresult>`
12+
object and is returned from :phpmethod:`MongoDB\Collection::bulkWrite()`.
1413

1514
Methods
1615
-------
@@ -27,11 +26,11 @@ Methods
2726
getUpsertedIds() </reference/method/MongoDBBulkWriteResult-getUpsertedIds>
2827
isAcknowledged() </reference/method/MongoDBBulkWriteResult-isAcknowledged>
2928

30-
- :phpmethod:`MongoDB\\BulkWriteResult::getDeletedCount()`
31-
- :phpmethod:`MongoDB\\BulkWriteResult::getInsertedCount()`
32-
- :phpmethod:`MongoDB\\BulkWriteResult::getInsertedIds()`
33-
- :phpmethod:`MongoDB\\BulkWriteResult::getMatchedCount()`
34-
- :phpmethod:`MongoDB\\BulkWriteResult::getModifiedCount()`
35-
- :phpmethod:`MongoDB\\BulkWriteResult::getUpsertedCount()`
36-
- :phpmethod:`MongoDB\\BulkWriteResult::getUpsertedIds()`
37-
- :phpmethod:`MongoDB\\BulkWriteResult::isAcknowledged()`
29+
- :phpmethod:`MongoDB\BulkWriteResult::getDeletedCount()`
30+
- :phpmethod:`MongoDB\BulkWriteResult::getInsertedCount()`
31+
- :phpmethod:`MongoDB\BulkWriteResult::getInsertedIds()`
32+
- :phpmethod:`MongoDB\BulkWriteResult::getMatchedCount()`
33+
- :phpmethod:`MongoDB\BulkWriteResult::getModifiedCount()`
34+
- :phpmethod:`MongoDB\BulkWriteResult::getUpsertedCount()`
35+
- :phpmethod:`MongoDB\BulkWriteResult::getUpsertedIds()`
36+
- :phpmethod:`MongoDB\BulkWriteResult::isAcknowledged()`

docs/reference/class/MongoDBChangeStream.txt

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ MongoDB\\ChangeStream Class
77
Definition
88
----------
99

10-
.. phpclass:: MongoDB\\ChangeStream
10+
.. phpclass:: MongoDB\ChangeStream
1111

1212
This class extends PHP's :php:`Iterator <manual/en/class.iterator.php>`
1313
interface. An instance of this class is returned by
14-
:phpmethod:`MongoDB\\Client::watch()`,
15-
:phpmethod:`MongoDB\\Database::watch()`, and
16-
:phpmethod:`MongoDB\\Collection::watch()`.
14+
:phpmethod:`MongoDB\Client::watch()`,
15+
:phpmethod:`MongoDB\Database::watch()`, and
16+
:phpmethod:`MongoDB\Collection::watch()`.
1717

1818
This class allows for iteration of events in a change stream. It also allows
1919
iteration to automatically resume after certain errors, such as a replica set
@@ -33,10 +33,10 @@ Methods
3333
rewind() </reference/method/MongoDBChangeStream-rewind>
3434
valid() </reference/method/MongoDBChangeStream-valid>
3535

36-
- :phpmethod:`MongoDB\\ChangeStream::current()`
37-
- :phpmethod:`MongoDB\\ChangeStream::getCursorId()`
38-
- :phpmethod:`MongoDB\\ChangeStream::getResumeToken()`
39-
- :phpmethod:`MongoDB\\ChangeStream::key()`
40-
- :phpmethod:`MongoDB\\ChangeStream::next()`
41-
- :phpmethod:`MongoDB\\ChangeStream::rewind()`
42-
- :phpmethod:`MongoDB\\ChangeStream::valid()`
36+
- :phpmethod:`MongoDB\ChangeStream::current()`
37+
- :phpmethod:`MongoDB\ChangeStream::getCursorId()`
38+
- :phpmethod:`MongoDB\ChangeStream::getResumeToken()`
39+
- :phpmethod:`MongoDB\ChangeStream::key()`
40+
- :phpmethod:`MongoDB\ChangeStream::next()`
41+
- :phpmethod:`MongoDB\ChangeStream::rewind()`
42+
- :phpmethod:`MongoDB\ChangeStream::valid()`

docs/reference/class/MongoDBClient.txt

+18-18
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ MongoDB\\Client Class
1313
Definition
1414
----------
1515

16-
.. phpclass:: MongoDB\\Client
16+
.. phpclass:: MongoDB\Client
1717

1818
This class serves as an entry point for the |php-library|. It is the
1919
preferred class for connecting to a MongoDB server or cluster of servers and
2020
acts as a gateway for accessing individual databases and collections.
21-
:phpclass:`MongoDB\\Client` is analogous to the driver's
22-
:php:`MongoDB\\Driver\\Manager <mongodb-driver-manager>` class, which it
21+
:phpclass:`MongoDB\Client` is analogous to the driver's
22+
:php:`MongoDB\Driver\Manager <mongodb-driver-manager>` class, which it
2323
`composes <https://en.wikipedia.org/wiki/Object_composition>`_.
2424

2525
Methods
@@ -44,18 +44,18 @@ Methods
4444
startSession() </reference/method/MongoDBClient-startSession>
4545
watch() </reference/method/MongoDBClient-watch>
4646

47-
- :phpmethod:`MongoDB\\Client::__construct()`
48-
- :phpmethod:`MongoDB\\Client::__get()`
49-
- :phpmethod:`MongoDB\\Client::createClientEncryption()`
50-
- :phpmethod:`MongoDB\\Client::dropDatabase()`
51-
- :phpmethod:`MongoDB\\Client::getManager()`
52-
- :phpmethod:`MongoDB\\Client::getReadConcern()`
53-
- :phpmethod:`MongoDB\\Client::getReadPreference()`
54-
- :phpmethod:`MongoDB\\Client::getTypeMap()`
55-
- :phpmethod:`MongoDB\\Client::getWriteConcern()`
56-
- :phpmethod:`MongoDB\\Client::listDatabaseNames()`
57-
- :phpmethod:`MongoDB\\Client::listDatabases()`
58-
- :phpmethod:`MongoDB\\Client::selectCollection()`
59-
- :phpmethod:`MongoDB\\Client::selectDatabase()`
60-
- :phpmethod:`MongoDB\\Client::startSession()`
61-
- :phpmethod:`MongoDB\\Client::watch()`
47+
- :phpmethod:`MongoDB\Client::__construct()`
48+
- :phpmethod:`MongoDB\Client::__get()`
49+
- :phpmethod:`MongoDB\Client::createClientEncryption()`
50+
- :phpmethod:`MongoDB\Client::dropDatabase()`
51+
- :phpmethod:`MongoDB\Client::getManager()`
52+
- :phpmethod:`MongoDB\Client::getReadConcern()`
53+
- :phpmethod:`MongoDB\Client::getReadPreference()`
54+
- :phpmethod:`MongoDB\Client::getTypeMap()`
55+
- :phpmethod:`MongoDB\Client::getWriteConcern()`
56+
- :phpmethod:`MongoDB\Client::listDatabaseNames()`
57+
- :phpmethod:`MongoDB\Client::listDatabases()`
58+
- :phpmethod:`MongoDB\Client::selectCollection()`
59+
- :phpmethod:`MongoDB\Client::selectDatabase()`
60+
- :phpmethod:`MongoDB\Client::startSession()`
61+
- :phpmethod:`MongoDB\Client::watch()`

0 commit comments

Comments
 (0)