--TEST-- Enum must not implement Serializable indirectly --FILE-- --EXPECTF-- Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d Fatal error: Enum Foo cannot implement the Serializable interface in %s on line %d