Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect enum duplicated values #2371

Merged
merged 12 commits into from
May 23, 2023
Prev Previous commit
Next Next commit
rename identifier
  • Loading branch information
kubk authored and ondrejmirtes committed May 9, 2023
commit 853df3cb5dd6bb5e47fe9152bebaf808921b3f45
2 changes: 1 addition & 1 deletion src/Rules/Classes/EnumSanityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function processNode(Node $node, Scope $scope): array
$caseName,
$stmt->expr->value,
))
->identifier('enum.caseTypeMismatch')
->identifier('enum.nonBackedEnumHasValue')
->line($stmt->getLine())
->nonIgnorable()
->build();
Expand Down