prettier / prettier/plugin-php
parentheses bug.
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
@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()
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked playground example and run the formatter on the provided PHP input to reproduce the output. Trace the formatting path for the parenthesized require expression and chained method call; done means the formatted result matches the expected output shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100