PHP 8.0: *printf()
and related functions support new specifiers
#1540
Labels
*printf()
and related functions support new specifiers
#1540
Is your feature request related to a problem?
PHP 8.0 silently introduced two new placeholder characters for the
*printf()
range of functions.This not mentioned in migration guide, changelog etc - I only discovered it by accident via a small note in the manual.
Ref: https://www.php.net/manual/en/function.sprintf.php
Describe the solution you'd like
New sniff in the
ParameterValue
category to analyze the$format
parameter of the relevant functions and flag use of the new modifiers if PHP < 8.0 needs to be supported.The text was updated successfully, but these errors were encountered: