Skip to content

Resolving concat vs. sprintf generalizes too quickly #13378

@rvanvelzen

Description

@rvanvelzen

Bug report

The sprintf return type extension uses the general scalar calculation limit, but for concat specifically this is limited to 16 combinations which is quite low.

Code snippet that reproduces the problem

https://phpstan.org/r/c080029f-dfbd-49ae-bcc0-61111949025a

Expected output

I'd expect both dumps to contain all combinations

Did PHPStan help you today? Did it make you happy in any way?

PHPStan has (almost) always made me happy, both working on it and working with it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions