Case %s of backed enum %s must have a value¶
Description¶
In a backed enumeration, all the cases must have a value. There are no default values for cases, not automatic assignation. This applies to both int and string enumerations.
Example¶
<?php
enum E: int {
case A = 1;
case B;
}
?>
Literal Examples¶
Case B of backed enum E must have a value
Solutions¶
Add all the missing values to the cases.
Remove the type of the enum.