FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add missing chain cases by jorgsowa · Pull Request #2462 · prettier/plugin-php · GitHub

test: add missing chain cases - #2462

Open
jorgsowa wants to merge 2 commits into
prettier:mainfrom
jorgsowa:test/add-chaining-cases
Open

test: add missing chain cases#2462
jorgsowa wants to merge 2 commits into
prettier:mainfrom
jorgsowa:test/add-chaining-cases

Conversation

Copy link
Copy Markdown
Collaborator

Adds missing test cases for method chaining. Those cases hit unvisited code paths.

jorgsowa marked this pull request as draft March 23, 2026 21:00
jorgsowa force-pushed the test/add-chaining-cases branch from 0b14ef7 to 86817c2 Compare March 23, 2026 21:22
jorgsowa self-assigned this Mar 23, 2026
jorgsowa marked this pull request as ready for review March 23, 2026 21:22
jorgsowa force-pushed the test/add-chaining-cases branch from 86817c2 to 6e9bc76 Compare March 25, 2026 20:50
Comment thread src/util.mjs

return (
parts.length <= depth &&
(node.arguments ?? []).every(isChildSimple) &&

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

just for my understanding, does any of the new test cases cover this new bit of logic?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL