Skip to content

ThisObjectType with subtracted EnumCase not behaving equally to ObjectType with subtracted EnumCase #9142

@janedbal

Description

@janedbal

Bug report

See snippet, $this while being enum is not behaving the same way as $self while being enum.

Code snippet that reproduces the problem

https://phpstan.org/r/f7aa056f-aec8-44bb-82f8-ae42cbd51ddd

Expected output

Equal behaviour

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