prettier / prettier/plugin-php

strange format issue

Open
#2,490 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.9k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

this specific line:
Image
gets formatted as this:
Image
but if I tried again to format, it goes back as it was in the beginning, issue is with repo https://github.com/lorypelli/testphp with the package.json format script

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior in the linked lorypelli/testphp repository by running the package.json format script on the reported img line. Compare the first and second formatting results and trace the relevant Prettier PHP formatting path; done means the line formats consistently and matches the expected dimensions.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.