Skip to content

Commit 591b7d7

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent 68bea87 commit 591b7d7

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
@@ -285,7 +285,7 @@ public function __construct(Dsn $dsn, string $name = null, array $supported = []
285285
}
286286
$package = self::SCHEME_TO_PACKAGE_MAP[$provider] ?? null;
287287
if ($package && !class_exists($package['class'])) {
288-
parent::__construct(sprintf('Unable to send notification via "%s" as the bridge is not installed; try running "composer require %s".', $provider, $package['package']));
288+
parent::__construct(sprintf('Unable to send notification via "%s" as the bridge is not installed. Try running "composer require %s".', $provider, $package['package']));
289289

290290
return;
291291
}

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testMessageWhereSchemeIsPartOfSchemeToPackageMap(string $scheme,
100100
$dsn = new Dsn(sprintf('%s://localhost', $scheme));
101101

102102
$this->assertSame(
103-
sprintf('Unable to send notification via "%s" as the bridge is not installed; try running "composer require %s".', $scheme, $package),
103+
sprintf('Unable to send notification via "%s" as the bridge is not installed. Try running "composer require %s".', $scheme, $package),
104104
(new UnsupportedSchemeException($dsn))->getMessage()
105105
);
106106
}

0 commit comments

Comments
 (0)