Skip to content

Commit 2293cf9

Browse files
authored
PHPLIB-980: Make uri parameter for MongoDB\Client::__construct nullable (#986)
1 parent 2b7be07 commit 2293cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/method/MongoDBClient__construct.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 __construct($uri = 'mongodb://127.0.0.1/', array $uriOptions = [], array $driverOptions = [])
22+
function __construct(?string $uri = null, array $uriOptions = [], array $driverOptions = [])
2323

2424
This constructor has the following parameters:
2525

0 commit comments

Comments
 (0)