Skip to content

ternary and "+" operator #7492

@staabm

Description

@staabm

Bug report

I think phpstan should have a better idea of this snippet then ERROR :)

Update: args.. no ternary.. but null coalesce :-)

Code snippet that reproduces the problem

https://phpstan.org/r/28d52c07-ffdc-41a6-a147-2384bd8ba401

Expected output

https://3v4l.org/Tb3lJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions