You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either an integer that says how many characters (minimum) this conversion should result in, or *. If * is used, then the width is supplied as an additional integer value preceding the one formatted by the specifier.
If * is used as the width, phpstan complains about Call to printf contains 0 placeholders, 2 values given.
Bug report
As per the php doc for printf-like functions:
If
*
is used as the width, phpstan complains aboutCall to printf contains 0 placeholders, 2 values given.
Code snippet that reproduces the problem
https://phpstan.org/r/5b266f50-2c92-41c3-a374-72df3982d659
Expected output
Phpstan should detect the variable width and accept one argument in addition to the one to format.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: