-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
[Privatization] Skip variable assign append on ChangeReadOnlyVariableWithDefaultValueToConstantRector #3687
Conversation
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.
Please add fixture test under
If it going to skip the change, you can copy one of fixture file with skip_
prefix and modify
...ngeReadOnlyVariableWithDefaultValueToConstantRector/Fixture/skip_variable_assignment.php.inc
Outdated
Show resolved
Hide resolved
...ngeReadOnlyVariableWithDefaultValueToConstantRector/Fixture/skip_variable_assignment.php.inc
Outdated
Show resolved
Hide resolved
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.
Please rename PR title to something like:
[Privatization] Skip variable assign append on ChangeReadOnlyVariableWithDefaultValueToConstantRector
Also, could you make CI green, see error
https://github.com/rectorphp/rector-src/actions/runs/4803271285/jobs/8547601933?pr=3687#step:5:18
@samsonasik could you please check why testing fails on Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Fixture/namespace_split.php.inc? I didn't change that file. Thanks! |
I am not sure, could you try rebase? If still happen, try revert your change, if still happen, it possibly due to duplicated fixture files |
Test failure fixed at #3691, please rebase |
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.
Looks good, thank you 👍
@mickeytodd @samsonasik Thanks for fixing this so quickly! |
…WithDefaultValueToConstantRector (#3687) * fix: checking for other modifying types * fix: added fixture * fix: changed class name * fix: checking if parent class is null * fix: checking for all types of assigning
Closes rectorphp/rector#7900