Skip to content

Commit e6efcb5

Browse files
committed
Fix format strings for deprecation notices
The `%c` conversion specifier expects an integer (the value of the byte to print) Detected via static analysis
1 parent 506bd37 commit e6efcb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Templating/Helper/TranslatorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function trans($id, array $parameters = [], $domain = 'messages', $locale
5858
*/
5959
public function transChoice($id, $number, array $parameters = [], $domain = 'messages', $locale = null)
6060
{
61-
@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);
61+
@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);
6262

6363
if (null === $this->translator) {
6464
return $this->doTrans($id, ['%count%' => $number] + $parameters, $domain, $locale);

0 commit comments

Comments
 (0)