Skip to content

Commit

Permalink
fix: correct format in the exception message
Browse files Browse the repository at this point in the history
Fixes the ValueError: `Unknown format specifier "i"`

Since `i` is not a valid specifier for sprintf @see https://www.php.net/manual/en/function.sprintf.php
  • Loading branch information
Jaap Romijn committed Nov 15, 2023
1 parent 27a5db8 commit b8188a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/NewsletterSubscriptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function exportNewEmail(string $email): void

throw new BadRequestHttpException(
sprintf(
'Mailchimp returned %1$i code, is the MAIL_CHIMP_LIST_ID [ %2$s ] one of available ones: [ %3$s ] ?',
'Mailchimp returned %1$d code, is the MAIL_CHIMP_LIST_ID [ %2$s ] one of available ones: [ %3$s ] ?',
Response::HTTP_NOT_FOUND,
$this->listId,
$concatenatedList
Expand Down

0 comments on commit b8188a0

Please sign in to comment.