Skip to content
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

Open
dvlpr91 opened this issue Mar 13, 2024 · 2 comments
Open

parentheses bug. #2340

dvlpr91 opened this issue Mar 13, 2024 · 2 comments
Labels

Comments

@dvlpr91
Copy link

dvlpr91 commented Mar 13, 2024

@prettier/plugin-php v0.22.2
Playground link

Input:

<?php

(require_once __DIR__ . '/../bootstrap/app.php')->handleRequest(Request::capture());

Output:

<?php

require_once __DIR__ . "/../bootstrap/app.php"->handleRequest(
    Request::capture()
);
@vinkla
Copy link

vinkla commented Mar 14, 2024

I'm here to report this issue too. The syntax is taken from Laravel 11's public/index.php file.

@timmylindh
Copy link

Same

@cseufert cseufert added the bug label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants