-
Notifications
You must be signed in to change notification settings - Fork 696
Open
Labels
Description
When the first param of (s)printf is a literal string (otherwise not possible to validate in psalm):
https://psalm.dev/r/7749cadcab
- for %d (or %1$d) the corresponding param must be type int (as string will be returned as 0 and float as int)
- this applies not only to "d" but to
[bcdouxX] - if placeholder is any of
[eEfFgGhH]type should be float - if placeholder is
sshould be type string (if we want to be less strict allow int|float|string like now)
Would be the next step after #9817
Reactions are currently unavailable