Skip to content

Commit e0322f7

Browse files
committed
Fixed variable name and removed nullable type
1 parent 8b69d29 commit e0322f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Messenger/Transport/TransportFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function createTransport(#[\SensitiveParameter] string $dsn, array $optio
5353
$packageSuggestion = ' Run "composer require symfony/beanstalkd-messenger" to install Beanstalkd transport.';
5454
}
5555

56-
if ($scheme = $this->santitizeDsn($dsn)) {
57-
throw new InvalidArgumentException(\sprintf('No transport supports Messenger DSN "%s".', $scheme).$packageSuggestion);
56+
if ($dsn = $this->santitizeDsn($dsn)) {
57+
throw new InvalidArgumentException(\sprintf('No transport supports Messenger DSN "%s".', $dsn).$packageSuggestion);
5858
}
5959

6060
throw new InvalidArgumentException('No transport supports the given Messenger DSN.'.$packageSuggestion);
@@ -71,7 +71,7 @@ public function supports(#[\SensitiveParameter] string $dsn, array $options): bo
7171
return false;
7272
}
7373

74-
private function santitizeDsn(string $dsn): ?string
74+
private function santitizeDsn(string $dsn): string
7575
{
7676
$parts = parse_url($dsn);
7777
$dsn = '';

0 commit comments

Comments
 (0)