Skip to content

Commit a098a3f

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent 7a9afbe commit a098a3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function __construct(Dsn $dsn, string $name = null, array $supported = []
7474
}
7575
$package = self::SCHEME_TO_PACKAGE_MAP[$provider] ?? null;
7676
if ($package && !class_exists($package['class'])) {
77-
parent::__construct(sprintf('Unable to send emails via "%s" as the bridge is not installed; try running "composer require %s".', $provider, $package['package']));
77+
parent::__construct(sprintf('Unable to send emails via "%s" as the bridge is not installed. Try running "composer require %s".', $provider, $package['package']));
7878

7979
return;
8080
}

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testMessageWhereSchemeIsPartOfSchemeToPackageMap(string $scheme,
5858
$dsn = new Dsn($scheme, 'localhost');
5959

6060
$this->assertSame(
61-
sprintf('Unable to send emails via "%s" as the bridge is not installed; try running "composer require %s".', $scheme, $package),
61+
sprintf('Unable to send emails via "%s" as the bridge is not installed. Try running "composer require %s".', $scheme, $package),
6262
(new UnsupportedSchemeException($dsn))->getMessage()
6363
);
6464
}

0 commit comments

Comments
 (0)