Skip to content

Subtracting enum set with in_array using class const got broken in 2.0 #12083

@janedbal

Description

@janedbal

Bug report

See snippet. I tried phpstan-src and it works on current 1.12.x branch.

Code snippet that reproduces the problem

https://phpstan.org/r/72ec1b75-cc18-493c-873e-68a324b4be82

Expected output

Dumped type: *NEVER*

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions