MIR0718
DuplicateEnumCaseValue
Every case of a backed enum needs its own value. PHP stops with a fatal error when two cases share one; the later case is reported.
Example
Section titled “Example”<?phpenum Status: int { case Active = 1; case Enabled = 1; // Error: duplicate of Active}How to fix
Section titled “How to fix”Give the case its own value, or drop it and use the existing case:
<?phpenum Status: int { case Active = 1; case Enabled = 2;}