Replies: 1 comment
-
Hi, this is job for a coding standard tool. You can see the difference between tokens and AST in examples here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was trying to write a new rule for people migrating to PHP 8 to cover this RFC: https://wiki.php.net/rfc/namespaced_names_as_token
(see also https://3v4l.org/Yonll)
The goal was to transform the code this way:
Unfortunately PHP-Parser doesn't support this syntax anymore: nikic/PHP-Parser#700 (comment)
Since I don't know what to do with it, I wanted to keep a trace about that at least.
Beta Was this translation helpful? Give feedback.
All reactions