From ca65c54018f7cd150e0560ab19f3db8df9619fcb Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 9 Dec 2020 15:10:31 +0100 Subject: [PATCH] [Notifier] Only use sprintf instead of sprintf and string concat --- .../Component/Notifier/Exception/IncompleteDsnException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php b/src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php index 34d4e3f116748..3ebcc58d6cd2f 100644 --- a/src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php +++ b/src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php @@ -24,7 +24,7 @@ public function __construct(string $message, string $dsn = null, ?\Throwable $pr { $this->dsn = $dsn; if ($dsn) { - $message = sprintf('Invalid "%s" notifier DSN: ', $dsn).$message; + $message = sprintf('Invalid "%s" notifier DSN: %s', $dsn, $message); } parent::__construct($message, 0, $previous);