We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@prettier/plugin-php v0.19.4 Playground link
Input:
<?php enum Bar: int { case test = 42; } class Foo { const BarInFoo = Bar::test; } print Foo::BarInFoo::class; //Prints Bar ?>
Output:
Parse Error : syntax error, unexpected '::' (T_DOUBLE_COLON) on line 11 9 | } 10 | > 11 | print Foo::BarInFoo::class; //Prints Bar | ^ 12 | ?>
Expected behavior:
No error reported.
The text was updated successfully, but these errors were encountered:
Hi @plafrance, thanks for the bug report. This seems to be a parser problem, I created an issue for it: glayzzle/php-parser#1093
Sorry, something went wrong.
No branches or pull requests
@prettier/plugin-php v0.19.4
Playground link
Input:
Output:
Expected behavior:
No error reported.
The text was updated successfully, but these errors were encountered: