[E017] Error: cannot declare magic method `EnumWithSerialize::__serialize` in an enum
   ,-[code.php:4:21]
   |
 3 | enum EnumWithSerialize {
   *      ^^^^^^^^^^^^^^^^^  
   *                          
 4 |     public function __serialize() {}
   *                     ^^^^^|^^^^^  
   *                          `------- try removing this magic method
---'

