Skip to content

fix: Handle crash on mark readonly on attributed anonymous class - #1179

Open
samsonasik wants to merge 1 commit into
nikic:masterfrom
samsonasik:handle-crash-readonly-atttributed-anon
Open

samsonasik wants to merge 1 commit into
nikic:masterfrom
samsonasik:handle-crash-readonly-atttributed-anon

Conversation

@samsonasik

@samsonasik samsonasik commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Given the following code:

new #[A] class {};

Marking the anonymous class readonly make printing error:

Encountered unexpected token

Reproduced on rector which currently skipped

This PR fix it here.

/cc @moshe-autoleadstar @TomasVotruba

@samsonasik

Copy link
Copy Markdown
Contributor Author

@TomasVotruba @nikic ready for merge 👍

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