Skip to content

Commit 93ca437

Browse files
committed
[Messenger] simplified code
1 parent f3708c8 commit 93ca437

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Transport/Doctrine/Connection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ public function getConfiguration(): array
6363

6464
public static function buildConfiguration($dsn, array $options = [])
6565
{
66-
if (false === $parsedUrl = parse_url($dsn)) {
66+
if (false === $components = parse_url($dsn)) {
6767
throw new InvalidArgumentException(sprintf('The given Doctrine DSN "%s" is invalid.', $dsn));
6868
}
6969

70-
$components = parse_url($dsn);
7170
$query = [];
7271
if (isset($components['query'])) {
7372
parse_str($components['query'], $query);

0 commit comments

Comments
 (0)