Enforce UpperCamelCase case values in PHP enum definitions

Created on 6 December 2024, 16 days ago

Problem/Motivation

At #3339746: Coding style for PHP Enumerations β†’ we decided to use UpperCamelCase for the case labels in PHP enum definitions.

Although SlevomatCodingStandard has a few sniffs related to PHP enums, some of which we're already going to enable and use, I can't find one that will enforce a certain case for the case labels (apologies for the overloaded "case" terminology). πŸ™ƒ

For now, opening this here in coder. We can move it if there's a better way to enforce this.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024