Skip to content

Commit 6be9cb3

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: fix lowest deps synchronize RelayProxy [Form] Adding more `@var` PHPDoc's to silence psalm [Validator] added missing Hungarian translation [Validator] add missing lv translation fix the exception being thrown fix syntax error fix redis messenger scheme comparison [Scheduler] Separate id and description in message providers [Form] Adding `@var` PHPDoc to silence psalm 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 0d11500 + 4e00f84 commit 6be9cb3

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
@@ -150,10 +150,10 @@ private function skimUri(string $uri): string
150150
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
151151
}
152152

153-
if (false === $parsedUrl = parse_url($uri)) {
153+
if (false === $params = parse_url($uri)) {
154154
throw new InvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
155155
}
156-
$pathDb = ltrim($parsedUrl['path'] ?? '', '/') ?: null;
156+
$pathDb = ltrim($params['path'] ?? '', '/') ?: null;
157157
if (null !== $pathDb) {
158158
$this->options['database'] = $pathDb;
159159
}

0 commit comments

Comments
 (0)