glayzzle / php-parser Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PHP 8 Support / WIP #486
Comments
|
https://wiki.php.net/rfc/nullsafe_operator What is the status about php 8 support? |
|
What’s new in PHP8?
I’d suggest creating an separate issue for each if these features. Compiled from https://www.php.net/releases/8.0/en.php |
|
There are now patches available for:
so really the work just needs to focus on attributes, however I am not sure the right way to update the lexer to support Attributes. |
|
Hi @cseufert |
|
I have changed the following PR's to merge to the php8 branch: I am going to have a go at getting this stuff working in prettier at some point, and am looking foward to having someone who know the codebase have a review of the code. I feel it could benefit a lot from being ported to typescript, but I guess thats a totally different problem. |
|
Awesome! As I said before, reviews in the parser are also quite difficult for me - I'm more comfortable on the prettier side. Either way I'll try to do my best to help, it would be awesome to have full php8 support in the prettier plugin :-) |
|
Hello, There is no tracking for non-capturing catches - |
|
Is this the correct place to remark on an error I noticed with parsing of promoted constructor params? php-parser complains about a syntax error when a promoted constructor param is marked as nullable with a question mark |
I have submitted a PR to fix this in the parser: |
|
@jaulz I think a separate issue would be better - thanks! |
|
Oh, I assumed that you were already working with the |
|
Okay, thanks for your quick feedback! |
|
Hi @czosel, I'll work on pending PR this week-end, if everything is ok then I'll release a new version and publish it on NPM. |
|
Hi, any progress on PHP8 support? |

Prepare the parser to PHP 8 :
Work In Progress as RFC are not yet closed
The text was updated successfully, but these errors were encountered: