lint/style/no-useless-sprintf
In the lint-strict preset. In Rector’s rector/dead-code set. Unsafe fix: it can change behavior.
What it does
Remove sprintf() calls with only the format argument.
Configuration
[lint.rules]
"style/no-useless-sprintf" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
no_useless_sprintf(php-cs-fixer, risky)UnwrapSprintfOneArgument(rector)
Merged rules
These old IDs are now this rule. A config that still names one stops with an error. See merged rules.
lint/strings/no-single-argument-sprintf