Skip to content

Enum instances aren't singletons #8

Description

@hikari-no-yume

Ideally, SomeEnum::Foo() should always return the same instance of SomeEnum, so you can do $someEnumValue1 === SomeEnum::Foo() instead of $someEnumValue1->getValue() !== SomeEnum::Foo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions