php-parser
php-parser copied to clipboard
:herb: NodeJS PHP Parser - extract AST or tokens
[Related RFC](https://wiki.php.net/rfc/typed_class_constants). Closes #1133
While working on a 8.3 typed constants PR I thought these might be updated.
This is a short one for reproduction. This one throws (`SyntaxError: Parse Error : syntax error, expecting T_END_HEREDOC on line 4`) ```php
Good day, first thanks for the awesome project! I noticed the parser fails if you have something between parenthesis before a nullsafe operator. I found it when using code like...
Hello First of all, Thank You very much for your work. I have a little problem with a test combining the not and the instanceof operators : if( !$stmt instanceof...
## Context - fixes: #1151 ## Problem - see: #1151 ## Solution Skip comments and whitespace when peeking as peek() is just peeking next token without consider comment. I don't...
/cc @genintho ## Context - php-parser https://github.com/glayzzle/php-parser/releases/tag/v3.2.2 ## Problem - class constant Syntax error introduced in 3.2.2 (#1147) - 3.2.1 does not occur this syntax error - https://github.com/prettier/plugin-php/blob/5f75fea7979af4dd530ea8cac827fb6314264621/tests/comments/classconstant.php#L16-L24 - It...
Fixes https://github.com/glayzzle/php-parser/issues/1142 RFC - https://wiki.php.net/rfc/property-hooks Official documentation - https://www.php.net/manual/en/language.oop5.property-hooks.php
https://github.com/glayzzle/php-parser/issues/1144