Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented May 21, 2025

Closes rectorphp/rector#9151

This share logic between Php82 ReadOnlyClassRector, which moved the logic to: ReadonlyClassManipulator service, with anonymous check for both rules so can run by rule:

  • Php82 ReadOnlyClassRector: skip anonymous, execute normal class
  • Php83 ReadOnlyAnonymousClassRector: skip normal class, execute anonymous class.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba
Copy link
Member

Looks good 👍

@TomasVotruba TomasVotruba self-requested a review May 21, 2025 06:56
@samsonasik
Copy link
Member Author

Let's merge 👍 , I will create downgrade rule for it.

@samsonasik samsonasik merged commit 2a5e822 into main May 21, 2025
45 checks passed
@samsonasik samsonasik deleted the readonly-ano branch May 21, 2025 07:08
@samsonasik
Copy link
Member Author

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[php 8.3] Add readonly support to anonymous classes

4 participants