Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Jun 11, 2025

@TomasVotruba this is the 2nd alternative for

The make AddTypeToConstRector so user can define inline_public theirself when needed to allow non-final class to have typed constant only on the AddTypeToConstRector.

I prefer this option, as this feel less destructive, and more inline with other typed rules:

which has inline_public config that user can toggle on/off per specific rule.

…public config to allow non-final class to have typed constant
@TomasVotruba
Copy link
Member

I understand that for us Rector-geeks is easier to configure each rule as standalone :) but not for most users that just want to let Rector work for them = that's our mission after all, setup Rector and forget it exists, while getting most value of it.

Goal of "treat all classes as final" is exactly to avoid configuring ~20 classes manually.
Devs should be able to turn it on with single line in one place 👍

I'll take the #6974

@samsonasik samsonasik deleted the alt-2-inline branch June 19, 2025 09:19
@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 27, 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.

3 participants