Skip to content

Loading…

Respect $options when $server is null in Connection constructor #177

Merged
merged 1 commit into from

1 participant

@jmikola
Doctrine member

No description provided.

@jmikola jmikola changed the title from Allow null $server in Connection constructor to Respect $options when $server is null in Connection constructor
@jmikola jmikola added feature bug and removed feature labels
@jmikola jmikola added this to the 1.0.9 milestone
@jmikola jmikola merged commit 7874c71 into 1.0.x
@jmikola jmikola deleted the 1.0-conn-ctor branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/MongoDB/Connection.php
View
2 lib/Doctrine/MongoDB/Connection.php
@@ -76,7 +76,7 @@ public function __construct($server = null, array $options = array(), Configurat
{
if ($server instanceof \MongoClient || $server instanceof \Mongo) {
$this->mongo = $server;
- } elseif ($server !== null) {
+ } else {
$this->server = $server;
$this->options = $options;
}
Something went wrong with that request. Please try again.