🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Erratic behavious when using match with list of enums #10128

Description

@JoyceBabu

Bug report

PHPStan behaves erratically when comparing a list of enum values using match statement

Code snippet that reproduces the problem

https://phpstan.org/r/7582eb45-f726-445a-92a5-8f7cf475df11

Expected output

PHPStan should not report any error, since all possible combinations are handled once in the match statement.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions