-
Notifications
You must be signed in to change notification settings - Fork 72
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! |
@czosel hm, I noticed that there is a pending issue and PR which talks about merging php8 features into I am using |
Oh, I assumed that you were already working with the |
Okay, thanks for your quick feedback! 😊 In that case I will just wait for it and come back in case I still notice it afterwards. |
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? |
Further improvements to PHP8 support landed in |
I'd say we could slowly promote the current |
Yes, agreed. Would probably be good to fix #968 first, but things seem to be working well mostly. I'm going on vacation two weeks as of tomorrow, so during that time I unfortunately won't have time to look at the linked issue. |
👍 enjoy your holiday! 🏝 |
Yes, a 3.1.0 release makes sense to me, which can parse PHP <= 8.1. It looks like PHP 8.2 has not added much that changes the syntax of the language. From what I can tell it is just the |
@czosel @cseufert @MaartenStaa Fixed #968. Are you ready to release 3.1.0 already? |
I’d say we are, I’ll do it soon :-) |
Released |
You guys are champions. Thank you for your work maintaining this package! |
am not sure if this is still in WIP or not, but i have the latest release and i still cant read |
Another related PHP 8.3 issue here. We may want to create milestones for each new PHP version for easier tracking. |
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: