Skip to content

Wrong string-type inference #14208

@staabm

Description

@staabm

Bug report

atm we infer a uppercase-string, which is not correct in all paths thru the IF/ELSE

Code snippet that reproduces the problem

https://phpstan.org/r/d34012da-7d55-413f-95aa-b522aa553347

Expected output

no error

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions