Skip to content

Commit 7874c71

Browse files
committed
Merge pull request doctrine#177 from doctrine/1.0-conn-ctor
Respect $options when $server is null in Connection constructor
2 parents 1c38a46 + 74cc098 commit 7874c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/MongoDB/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct($server = null, array $options = array(), Configurat
7676
{
7777
if ($server instanceof \MongoClient || $server instanceof \Mongo) {
7878
$this->mongo = $server;
79-
} elseif ($server !== null) {
79+
} else {
8080
$this->server = $server;
8181
$this->options = $options;
8282
}

0 commit comments

Comments
 (0)