Code Inspection: Format function parameters mismatch
In the following example, the sprintf() call contains two conversion specifications,
%s, but is provided three parameters. The last parameter
$foois therefore not mapped to any conversion specification:sprintf('There are %d monkeys in the %s', 5, 'tree', $foo);
In the following example, the sprintf() call contains three conversion specifications,
%s, but is only provided two parameters. The last conversion specification
%sis therefore not mapped to any parameter:sprintf('There are %d %s in the %s', 5, 'tree');
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.