Skip to content

SprintfReturnTypeProvider not working well with array unpacking #9873

@fancyweb

Description

@fancyweb

Hello, SprintfReturnTypeProvider crashes when sprintf is used with array unpacking because it considers there's one arg only, eg:

$array = ['foo', 'bar', 'ccc'];
sprintf('%s %s %s', ...$array);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions