From 109fee57094bbf35e8e718029bf7fe6b177bd35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Delprat?= Date: Thu, 6 Dec 2018 10:31:13 +0900 Subject: [PATCH] Fixes sprintf(): Too few arguments in Translator Similar to : https://github.com/symfony/symfony/pull/29344 --- .../Component/Translation/Formatter/MessageFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Translation/Formatter/MessageFormatter.php b/src/Symfony/Component/Translation/Formatter/MessageFormatter.php index 11f766c8cd216..e36f242c89e42 100644 --- a/src/Symfony/Component/Translation/Formatter/MessageFormatter.php +++ b/src/Symfony/Component/Translation/Formatter/MessageFormatter.php @@ -66,7 +66,7 @@ public function formatIntl(string $message, string $locale, array $parameters = */ public function choiceFormat($message, $number, $locale, array $parameters = array()) { - @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the format() one instead with a %count% parameter.', __METHOD__), E_USER_DEPRECATED); + @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the format() one instead with a %%count%% parameter.', __METHOD__), E_USER_DEPRECATED); $parameters = array('%count%' => $number) + $parameters;