Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45c3de0

Browse files
stephanedelpratnicolas-grekas
authored andcommitted
Fixes sprintf(): Too few arguments in Translator
Fixes the log produced when the method is called : Before : "sprintf(): Too few arguments"After : "The "Symfony\Component\Translation\Translator::transChoice()" method is deprecated since Symfony 4.2, use the trans() one instead with a "%count%" parameter."Reference :http://php.net/manual/function.sprintf.php
1 parent1aaf73e commit45c3de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Translation/Translator.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
226226
*/
227227
publicfunctiontransChoice($id,$number,array$parameters =array(),$domain =null,$locale =null)
228228
{
229-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the trans() one instead with a "%count%" parameter.',__METHOD__),E_USER_DEPRECATED);
229+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the trans() one instead with a "%%count%%" parameter.',__METHOD__),E_USER_DEPRECATED);
230230

231231
if (!$this->formatterinstanceof ChoiceMessageFormatterInterface) {
232232
thrownewLogicException(sprintf('The formatter "%s" does not support plural translations.',\get_class($this->formatter)));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp