
no_useless_sprintf
¶There must be no sprintf
calls with only the first argument.
Warning
Using this rule is risky.
Risky when if the sprintf
function is overridden.
--- Original
+++ New
@@ -1,2 +1,2 @@
<?php
-$foo = sprintf('bar');
+$foo = 'bar';
The rule is part of the following rule sets:
Using the @PhpCsFixer:risky rule set will enable the no_useless_sprintf
rule.
Using the @Symfony:risky rule set will enable the no_useless_sprintf
rule.