Skip to content

add custom enum sniff#425

Merged
LordSimal merged 1 commit into6.xfrom
6.x-add-enum-sniff
Mar 14, 2026
Merged

add custom enum sniff#425
LordSimal merged 1 commit into6.xfrom
6.x-add-enum-sniff

Conversation

@LordSimal
Copy link
Contributor

@LordSimal LordSimal force-pushed the 6.x-add-enum-sniff branch from 2ea9d43 to 27c2ab7 Compare March 14, 2026 07:27
@LordSimal LordSimal merged commit 9cf1618 into 6.x Mar 14, 2026
6 checks passed
@LordSimal LordSimal deleted the 6.x-add-enum-sniff branch March 14, 2026 10:43
dereuromark added a commit that referenced this pull request Mar 14, 2026
Relax the ValidEnumNameSniff to allow omitting the "Enum" suffix when
the enum is in a namespace containing "Enum" as a segment (e.g.,
`App\Model\Enum\Status` is now valid without the suffix).

This avoids redundant naming like `App\Model\Enum\FooBarEnum`.

Refs #425
LordSimal pushed a commit that referenced this pull request Mar 14, 2026
Relax the ValidEnumNameSniff to allow omitting the "Enum" suffix when
the enum is in a namespace containing "Enum" as a segment (e.g.,
`App\Model\Enum\Status` is now valid without the suffix).

This avoids redundant naming like `App\Model\Enum\FooBarEnum`.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants