We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d11500 + 4e00f84 commit 6be9cb3Copy full SHA for 6be9cb3
Store/MongoDbStore.php
@@ -150,10 +150,10 @@ private function skimUri(string $uri): string
150
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
151
}
152
153
- if (false === $parsedUrl = parse_url($uri)) {
+ if (false === $params = parse_url($uri)) {
154
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
155
156
- $pathDb = ltrim($parsedUrl['path'] ?? '', '/') ?: null;
+ $pathDb = ltrim($params['path'] ?? '', '/') ?: null;
157
if (null !== $pathDb) {
158
$this->options['database'] = $pathDb;
159
0 commit comments