Skip to content

SprintfReturnTypeProvider crashes with unknown sprintf format #9874

@fancyweb

Description

@fancyweb

Hello, SprintfReturnTypeProvider crashes when sprintf is used with an invalid format, eg:

$a = 'a';
sprintf('foo "%" bar', $a);

https://psalm.dev/r/eef72f64c3

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