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 e7be7af + 862d54a commit 4e00f84Copy full SHA for 4e00f84
Store/MongoDbStore.php
@@ -157,10 +157,10 @@ private function skimUri(string $uri): string
157
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
158
}
159
160
- if (false === $parsedUrl = parse_url($uri)) {
+ if (false === $params = parse_url($uri)) {
161
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
162
163
- $pathDb = ltrim($parsedUrl['path'] ?? '', '/') ?: null;
+ $pathDb = ltrim($params['path'] ?? '', '/') ?: null;
164
if (null !== $pathDb) {
165
$this->options['database'] = $pathDb;
166
0 commit comments