Skip to content

fix: correct "silence" typo to "silent"#2464

Merged
czosel merged 1 commit intoprettier:mainfrom
jorgsowa:fix/silent-typo-in-needs-parens
Mar 23, 2026
Merged

fix: correct "silence" typo to "silent"#2464
czosel merged 1 commit intoprettier:mainfrom
jorgsowa:fix/silent-typo-in-needs-parens

Conversation

@jorgsowa
Copy link
Collaborator

The PHP parser emits node kind "silent" (not "silence"), so the case "silence" branch was dead code. Silent expressions with parens (e.g. (@$obj)->method()) would always have their parens dropped.

The PHP parser emits node kind "silent" (not "silence"), so the
case "silence" branch was dead code. Silent expressions with parens
(e.g. (@$obj)->method()) would always have their parens dropped.
@jorgsowa jorgsowa self-assigned this Mar 23, 2026
Copy link
Collaborator

@czosel czosel left a comment

Choose a reason for hiding this comment

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

👍

@czosel czosel merged commit af1e0de into prettier:main Mar 23, 2026
14 of 15 checks passed
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