-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
PHP 8.2 support #2130
Comments
Readonly class support landed in the parser recentily: glayzzle/php-parser#1046 |
Well, the question was more general than only asking about readonly classes, but yes, readonly classes are something I am looking forward to use. private function foo((Countable&Iterator)|array $values) : void {
// ...
} ... SyntaxError: Parse Error : syntax error, unexpected '(', expecting T_VARIABLE on line 10
[error] 9 |
[error] > 10 | private function foo((Countable&Iterator)|array $values) : void { Anyway, I gave it a try, but I failed terribly almost on each step as the contribution manual is not too detailed for me and prepared scripts doesn't work as expected (probably because expects global installations of some packages, while IMO it should use and install them locally) ... And about the printer, I am not able to debug it easily and I am lost in it. I've invested some time into it, but most of the time was solving problems with the environment. The entry barrier is too high for me, sorry. |
Readonly class support #2131 (jest does not need to be installed globally, yarn should pick the folder version) |
Readonly class support landed in |
Hi there, |
I've ran into the same issue as @Timbuktu1982 with updating the |
This should be fixed by #2179 - until it is released, you can just use "8.1" as phpVersion (which has the same behavior). |
@Timbuktu1982 @tomb1n0 |
@prettier/plugin-php v0.19.2
Playground link
Input:
Output:
Expected:
Not fail
Hi,
I would like to ask what are the plans or roadmap to support PHP 8.2
The text was updated successfully, but these errors were encountered: