Enum Are Not Linted

no-email (Damien Seguy), Damien Seguy
Thu, 22 Aug 2024 00:00:00 +0000

It is possible to give two identical values to different enumeration cases, but not to execute it.
In PHP 8.1, duplicate case values generated a compilation error.
Since PHP 8.2, it is now waiting for the execution stage and the first usage of the enumeration, to raise a fatal error.