Fork me on GitHub
a Sensio Labs Product

Folding Bike (v3.91.3) edition

Rule no_useless_printf

There must be no printf calls with only the first argument.

Warning

This rule is RISKY

Risky when the printf function is overridden.

Examples

Example #1

--- Original
+++ New
 <?php

-printf('bar');
+print 'bar';

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.