Skip to content

(s)printf fatal error not reported when params don't match placeholders #9817

@kkmuffme

Description

@kkmuffme

When the first param of (s)printf is a literal string (otherwise not possible to validate in psalm):

https://psalm.dev/r/4be0b0cec6
The number of params - 1 must match the number of unique placeholders. Atm this reports as "no errors" while in reality this is a fatal error (ArgumentCountError)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions