Skip to content

[PHP8.1] Enum cases could not be resolved statically as constants #132

Open
@lisachenko

Description

@lisachenko

For Enum classes, each enum's case is internally represented as a constant with object type, storing instance of enum itself. Unfortunately, this makes impossible to return values for such constants, as they require loading and creation of similar object instances.

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