Skip to content

fix: yield from parenthesis#2466

Merged
czosel merged 1 commit intoprettier:mainfrom
jorgsowa:feat/fix-yieldfrom-needs-parens
Mar 29, 2026
Merged

fix: yield from parenthesis#2466
czosel merged 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
@czosel czosel merged commit ecb99bc into prettier:main Mar 29, 2026
15 checks passed
@czosel
Copy link
Copy Markdown
Collaborator

czosel commented Mar 29, 2026

Released in v0.25.0 🎉

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