-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
parentheses bug. #2340
Comments
I'm here to report this issue too. The syntax is taken from Laravel 11's |
Same |
Is there are plan to fix this one? |
|
It also removes the parentheses from the nameless class definition in Laravel 11 migrations. There are parentheses after the return new class () extends Migration { Run Prettier, and they’re gone: return new class extends Migration { The PER Coding Style 2.0 requires parentheses when instantiating a new class: https://www.php-fig.org/per/coding-style/#4-classes-properties-and-methods |
@prettier/plugin-php v0.22.2
Playground link
Input:
Output:
The text was updated successfully, but these errors were encountered: