php-parser-rs 0.1.3

A handwritten recursive-descent parser for PHP written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
[E017] Error: cannot declare magic method `EnumWithSleep::__sleep` in an enum
   ,-[code.php:4:21]
   |
 3 | enum EnumWithSleep {
   *      ^^^^^^^^^^^^^  
   *                      
 4 |     public function __sleep() {}
   *                     ^^^|^^^  
   *                        `----- try removing this magic method
---'