Skip to content

Conversation

@simonschaufi
Copy link
Contributor

@simonschaufi simonschaufi commented Dec 12, 2025

This rule is inspired by https://cs.symfony.com/doc/rules/class_notation/protected_to_private.html which does the same. Now we have a rector rule as well.

@simonschaufi simonschaufi force-pushed the PrivatizeFinalClassConstantRector branch from 29934fc to cddeaad Compare December 12, 2025 22:55
@TomasVotruba
Copy link
Member

Looks good, thank you 👍

I wonder why we didn't have this covered yet :)

@TomasVotruba TomasVotruba merged commit a046e2d into rectorphp:main Dec 13, 2025
58 checks passed
@simonschaufi simonschaufi deleted the PrivatizeFinalClassConstantRector branch December 13, 2025 09:50
@samsonasik samsonasik mentioned this pull request Dec 14, 2025
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