File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ The following code example shows how to specify {+stable-api+} version 1:
56
56
:copyable: true
57
57
:start-after: // start-specify-v1
58
58
:end-before: // end-specify-v1
59
- :emphasize-lines: 3,5
59
+ :emphasize-lines: 3-4
60
60
61
61
.. note::
62
62
@@ -103,7 +103,7 @@ The following code example shows how you can use these parameters when construct
103
103
:copyable: true
104
104
:start-after: // start-stable-api-options
105
105
:end-before: // end-stable-api-options
106
- :emphasize-lines: 3,5
106
+ :emphasize-lines: 3-4
107
107
108
108
API Documentation
109
109
-----------------
Original file line number Diff line number Diff line change 2
2
$uri = "mongodb://<hostname>:<port>";
3
3
4
4
$driverOptions = ['serverApi' => new MongoDB\Driver\ServerApi('1')];
5
-
6
5
$client = new MongoDB\Client($uri, [], $driverOptions);
7
6
// end-specify-v1
8
7
9
8
// start-stable-api-options
10
9
$uri = "mongodb://<hostname>:<port>";
11
10
12
11
$driverOptions = ['serverApi' => new MongoDB\Driver\ServerApi('1', strict: true, deprecationErrors: true)];
13
-
14
12
$client = new MongoDB\Client($uri, [], $driverOptions);
15
13
// end-stable-api-options
You can’t perform that action at this time.
0 commit comments