Skip to content

Proper enum cases casing #93

Description

@krzysztofrewak

I would like to enforce PER coding style for enum cases: https://www.php-fig.org/per/coding-style/#9-enumerations

Before:

enum Status: string
{
    case ACTIVE = "active";
    case INACTIVE = "inactive";
    case SUSPENDED = "suspended";
}

Expected:

enum Status: string
{
    case Active = "active";
    case Inactive = "inactive";
    case Suspended = "suspended";
}

Tricky part: what about acronyms?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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