Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 5b6f1b6

Browse files
termitweierophinney
authored andcommitted
fixed connectionUri for mongo checker
1 parent b40c2ef commit 5b6f1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Check/Mongo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function getListDBs()
5151
if (class_exists('\MongoDB\Client')) {
5252
return (new \MongoDB\Client($this->connectionUri))->listDatabases();
5353
} elseif (class_exists('\MongoClient')) {
54-
return (new \MongoClient($this->server))->listDBs();
54+
return (new \MongoClient($this->connectionUri))->listDBs();
5555
}
5656

5757
throw new \RuntimeException('Neither the mongo extension or mongodb are installed');

0 commit comments

Comments
 (0)