[Notifier] Only use sprintf instead of sprintf and string concat

This commit is contained in:
Oskar Stark 2020-12-09 15:10:31 +01:00 committed by Nicolas Grekas
parent ec09d68df1
commit ca65c54018

View File

@ -24,7 +24,7 @@ class IncompleteDsnException extends InvalidArgumentException
{
$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);