Skip to content

Commit 34722b1

Browse files
committed
minor #18137 Fix typo on sprintf codeblock (JulienRAVIA)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- Fix typo on sprintf codeblock Change comma emplacement on PHP `sprintf` code block <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 00623bd Fix typo on codeblock
2 parents 7322465 + 00623bd commit 34722b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notifier.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ dispatched. Listeners receive a
857857
$message = $event->getMessage();
858858

859859
// log something
860-
$this->logger(sprintf('Message with subject: %s will be send to %s, $message->getSubject(), $message->getRecipientId()'));
860+
$this->logger(sprintf('Message with subject: %s will be send to %s', $message->getSubject(), $message->getRecipientId()));
861861
});
862862

863863
The ``FailedMessageEvent`` Event
@@ -883,7 +883,7 @@ Listeners receive a
883883
$error = $event->getError();
884884

885885
// log something
886-
$this->logger(sprintf('The message with subject: %s has not been sent successfully. The error is: %s, $message->getSubject(), $error->getMessage()'));
886+
$this->logger(sprintf('The message with subject: %s has not been sent successfully. The error is: %s', $message->getSubject(), $error->getMessage()));
887887
});
888888

889889
The ``SentMessageEvent`` Event
@@ -903,7 +903,7 @@ is dispatched. Listeners receive a
903903
$message = $event->getOriginalMessage();
904904

905905
// log something
906-
$this->logger(sprintf('The message has been successfully sent and has id: %s, $message->getMessageId()'));
906+
$this->logger(sprintf('The message has been successfully sent and has id: %s', $message->getMessageId()));
907907
});
908908

909909
.. TODO

0 commit comments

Comments
 (0)