Skip to content

Commit 5ecaa22

Browse files
mongoKartalcaeus
andauthored
Apply suggestions from code review
Co-authored-by: Andreas Braun <git@alcaeus.org>
1 parent 6c9011a commit 5ecaa22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/includes/connect/atlas.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
// Create a MongoDB client with server API options
88
$client = new MongoDB\Client($uri, [], [
9-
'serverApi' => [
10-
'version' => '1'
11-
]
9+
'serverApi' => new MongoDB\Driver\ServerApi('1')
1210
]);
1311

1412
// Ping the server to verify that the connection works

0 commit comments

Comments
 (0)