Skip to content

Commit 4e00f84

Browse files
Merge branch '6.3' into 6.4
* 6.3: append instead of replacing potentially non-existent named-arguments [Validator] added missing Polish translation add translations for the MacAddress constraint remove invalid changelog entry Added missing Serbian (sr_Latn) translations [Cache][DependencyInjection][Lock][Mailer][Messenger][Notifier][Translation] Url decode username and passwords from `parse_url()` results [Security] added missing Albanian translations [Validator] Add missing Hungarian translation [Serializer] Fix using deserialization path [Validator] Add missing hr translation
2 parents e7be7af + 862d54a commit 4e00f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Store/MongoDbStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ private function skimUri(string $uri): string
157157
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
158158
}
159159

160-
if (false === $parsedUrl = parse_url($uri)) {
160+
if (false === $params = parse_url($uri)) {
161161
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
162162
}
163-
$pathDb = ltrim($parsedUrl['path'] ?? '', '/') ?: null;
163+
$pathDb = ltrim($params['path'] ?? '', '/') ?: null;
164164
if (null !== $pathDb) {
165165
$this->options['database'] = $pathDb;
166166
}

0 commit comments

Comments
 (0)