Skip to content

Infer more precise constant type from implode with const args #11854

@staabm

Description

@staabm

Feature request

I think its pretty common to implode a constant array.
would be great we could infer a more precise constant string union-return type in this case

https://phpstan.org/r/7129179a-25b2-4c57-a65a-174db86c49c0

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

No response

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