-
-
Notifications
You must be signed in to change notification settings - Fork 411
[Php82] Add ReadOnlyClassRector #2296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2c605d0
to
33c2f92
Compare
ede6efd
to
7ce9170
Compare
rules-tests/Php82/Rector/Class_/ReadOnlyClassRector/Fixture/skip_already_readonly.php.inc
Outdated
Show resolved
Hide resolved
7ccc36a
to
0dc8e9d
Compare
All checks have passed 🎉 @TomasVotruba it is ready for review. |
af7ad8c
to
a9de1ae
Compare
rebased. |
I am merging it ;) |
👍 |
} | ||
} | ||
|
||
?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be one more fixture with one readonly
property and one normal one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That willl be skipped, i will add more fixture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<?php | ||
|
||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture; | ||
|
||
final class SkipHasWritableProperty | ||
{ | ||
private string $property; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about public readonly
combination?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That willl be skipped for writable+readonly, i will add more fixture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes rectorphp/rector#7160