You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It transforms: echo _("My translatable text with '{$pattern}'.");
to (regard also the unnecessary replacement of ' with "): echo _(sprintf('My translatable text with \'%s\'.', $pattern));
It should do optimally: echo sprintf(_("My translatable text with '%s'."), $pattern);
or at least: echo sprintf(_('My translatable text with \'%s\'.'), $pattern);
Currently, instead of passing only text to the translator, it passes code to the translator.
Funnily, in a second run SymplifyQuoteEscapeRector corrects the " to ' issue, that EncapsedStringsToSprintfRector unnecessarily introduced.
The text was updated successfully, but these errors were encountered:
It transforms:
echo _("My translatable text with '{$pattern}'.");
to (regard also the unnecessary replacement of ' with "):
echo _(sprintf('My translatable text with \'%s\'.', $pattern));
It should do optimally:
echo sprintf(_("My translatable text with '%s'."), $pattern);
or at least:
echo sprintf(_('My translatable text with \'%s\'.'), $pattern);
Currently, instead of passing only text to the translator, it passes code to the translator.
Funnily, in a second run SymplifyQuoteEscapeRector corrects the " to ' issue, that EncapsedStringsToSprintfRector unnecessarily introduced.
The text was updated successfully, but these errors were encountered: