Closed
Description
Moved from symfony/symfony#45516.
Description
According to coding standards, PHP classes of type Interface and Trait should have a suffix: Trait
and Interface
respectively:
- Suffix interfaces with
Interface
;- Suffix traits with
Trait
;
PHP 8.1 introduced enumerations that are also some kind of a PHP class so I think that for consistency reasons Enum
suffixes should be added as a new naming convention:
Example
- Suffix enumerations with
Enum
.