Enum %s cannot implement the Serializable interface

Description

Enumeration cannot be serialized: they are created as needed by the PHP engine, during execution.

Example

<?php

enum E implements Serializable {
    case A;
}

?>

Literal Examples

  • Enum E cannot implement the Serializable interface

Solutions

  • Remove the serializable implements.

  • Make this enumeration a class.