Skip to content

Commit 49d32aa

Browse files
committed
Fix re-assembling query string in connection strings with multiple mongos nodes
1 parent e8b7895 commit 49d32aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/FunctionalTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public static function getUri($allowMultipleMongoses = false)
9494
$parts[] = $urlParts['path'];
9595
}
9696
if (isset($urlParts['query'])) {
97-
$parts += [
97+
$parts = array_merge($parts, [
9898
'?',
99-
$urlParts['path']
100-
];
99+
$urlParts['query']
100+
]);
101101
}
102102

103103
return implode('', $parts);

0 commit comments

Comments
 (0)