Commit eee864a9 authored by Jeremy Mikola's avatar Jeremy Mikola

Ensure Client's $writeConcern property is initialized

Fixes a bug introduced in 21b7d92a for PHPLIB-200
parent 818e4506
......@@ -25,6 +25,7 @@ class Client
private $manager;
private $uri;
private $typeMap;
private $writeConcern;
/**
* Constructs a new Client instance.
......@@ -63,6 +64,7 @@ class Client
unset($driverOptions['typeMap']);
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
$this->writeConcern = $this->manager->getWriteConcern();
}
/**
......@@ -77,6 +79,7 @@ class Client
'manager' => $this->manager,
'uri' => $this->uri,
'typeMap' => $this->typeMap,
'writeConcern' => $this->writeConcern,
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment