Skip to content

Rule lowercase_static_reference wrongly affecting 'Parent' enum cases #380

@lukejoyce

Description

@lukejoyce

Pint Version

1.23.0

PHP Version

8.3.1

Description

This could be a CS-Fixer thing but the lowercase_static_reference rule renames enum cases named "Parent" to "parent" which breaks the code.

Steps To Reproduce

Before:

enum Family
{
    case Parent;
    case Child;
}

After:

enum Family
{
    case parent;
    case Child;
}

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