Skip to content

Commit 5fe4588

Browse files
committed
Merge branch 'v1.0'
2 parents 3006166 + ec57718 commit 5fe4588

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
@@ -50,9 +50,12 @@ public function __construct($uri = 'mongodb://localhost:27017', array $uriOption
5050
throw InvalidArgumentException::invalidType('"typeMap" driver option', $driverOptions['typeMap'], 'array');
5151
}
5252

53-
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
5453
$this->uri = (string) $uri;
5554
$this->typeMap = isset($driverOptions['typeMap']) ? $driverOptions['typeMap'] : null;
55+
56+
unset($driverOptions['typeMap']);
57+
58+
$this->manager = new Manager($uri, $uriOptions, $driverOptions);
5659
}
5760

5861
/**

0 commit comments

Comments
 (0)