php-parser
php-parser copied to clipboard
PHP parser written in Go
## PHP Version 8.0 8.1 ## Code Example ```php class Enum{} ``` ## Actual Behavior 2023/12/15 09:35:40 syntax error: unexpected T_ENUM, expecting T_STRING at line 1 ## Expected Behavior ```...
prior, php-parser would panic if a file was terminated by a lone \r
## PHP Version 5.6 ```php data:=`
1. Remove old links 2. Add topics 3. Enable GitHub CI 4. Update LICENSE
## PHP Version 7.4 and 8.0 ## Code Example ```php "$property->name[]"; ``` ## Actual Behavior ``` ==> syntax error: unexpected '[' at line 2 ``` ## Expected Behavior No error.