Skip to content

Commit ec57718

Browse files
committed
Merge pull request #247
2 parents 535eb75 + c606ab6 commit ec57718

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ public function __construct($uri = 'mongodb://localhost:27017', array $uriOption
5353
throw InvalidArgumentException::invalidType('"typeMap" driver option', $driverOptions['typeMap'], 'array');
5454
}
5555

56-
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
5756
$this->uri = (string) $uri;
5857
$this->typeMap = isset($driverOptions['typeMap']) ? $driverOptions['typeMap'] : null;
58+
59+
unset($driverOptions['typeMap']);
60+
61+
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
5962
}
6063

6164
/**

0 commit comments

Comments
 (0)