8000 minor #39412 [Notifier] Only use sprintf instead of sprintf and strin… · symfony/symfony@56f0456 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56f0456

Browse files
minor #39412 [Notifier] Only use sprintf instead of sprintf and string concat (OskarStark)
This PR was submitted for the 5.x branch but it was merged into the 5.1 branch instead. Discussion ---------- [Notifier] Only use sprintf instead of sprintf and string DE0F concat | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | --- | License | MIT | Doc PR | --- Commits ------- ca65c54 [Notifier] Only use sprintf instead of sprintf and string concat
2 parents ec09d68 + ca65c54 commit 56f0456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(string $message, string $dsn = null, ?\Throwable $pr
2424
{
2525
$this->dsn = $dsn;
2626
if ($dsn) {
27-
$message = sprintf('Invalid "%s" notifier DSN: ', $dsn).$message;
27+
$message = sprintf('Invalid "%s" notifier DSN: %s', $dsn, $message);
2828
}
2929

3030
parent::__construct($message, 0, $previous);

0 commit comments

Comments
 (0)
0