Enum %s cannot implement the Serializable interface
Description
Enumeration cannot be serialized: they are created as needed by the PHP engine, during execution, and they will again at the next execution.
Example
<?php
enum E implements Serializable {
case A;
}
?>
Literal Examples
- Enum E cannot implement the Serializable interface
Alternatives
- Remove the
serializableimplements. - Make this enumeration a class.