Skip to content

fix: yield from parenthesis#2466

Open
jorgsowa wants to merge 1 commit intoprettier:mainfrom
jorgsowa:feat/fix-yieldfrom-needs-parens
Open

fix: yield from parenthesis#2466
jorgsowa wants to merge 1 commit intoprettier:mainfrom
jorgsowa:feat/fix-yieldfrom-needs-parens

Conversation

@jorgsowa
Copy link
Copy Markdown
Collaborator

@jorgsowa jorgsowa commented Mar 23, 2026

yield from expressions were not included in the needsParens case that handles yield, causing them to be incorrectly wrapped (or not wrapped) with parentheses in certain contexts.

@jorgsowa jorgsowa changed the title update parser to @jorgsowa/php-parser fix: yield from parenthesis Mar 23, 2026
@jorgsowa jorgsowa force-pushed the feat/fix-yieldfrom-needs-parens branch from efba191 to edf47d1 Compare March 25, 2026 21:23
@jorgsowa jorgsowa marked this pull request as ready for review March 25, 2026 21:26
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.

1 participant