Skip to content

Commit b7c9b94

Browse files
committed
Fix quotes in exception messages
1 parent 814cf31 commit b7c9b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/TransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testFromWrongString(string $dsn, string $error): void
7474

7575
public function fromWrongStringProvider(): iterable
7676
{
77-
yield 'garbage at the end' => ['dummy://a some garbage here', 'The DSN has some garbage at the end: some garbage here.'];
77+
yield 'garbage at the end' => ['dummy://a some garbage here', 'The DSN has some garbage at the end: " some garbage here".'];
7878

7979
yield 'not a valid DSN' => ['something not a dsn', 'The "something" mailer DSN must contain a scheme.'];
8080

Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function fromString(string $dsn): TransportInterface
8585
{
8686
list($transport, $offset) = $this->parseDsn($dsn);
8787
if ($offset !== \strlen($dsn)) {
88-
throw new InvalidArgumentException(sprintf('The DSN has some garbage at the end: %s.', substr($dsn, $offset)));
88+
throw new InvalidArgumentException(sprintf('The DSN has some garbage at the end: "%s".', substr($dsn, $offset)));
8989
}
9090

9191
return $transport;

0 commit comments

Comments
 (0)