-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
docs: [4.4] fix Rector's incorrect refactoring #7650
docs: [4.4] fix Rector's incorrect refactoring #7650
Conversation
could you create a simple reproducible bug on https://getrector.com/demo , it seems correct just by looking at it, but probably it prefilled/unset in other side that cause side effect on the property value. |
@samsonasik Created rectorphp/rector#8039 |
@kenjis the |
60f82bf
to
69f1aba
Compare
@samsonasik Thanks. I removed skipping |
The following error will be fixed by #7661
|
…tionRector Without this doc type, Rector will refactor the following: 1) system/Router/AutoRouterImproved.php:294 ---------- begin diff ---------- @@ @@ // Update the positions. $this->methodPos = $this->paramPos; - if ($params === []) { - $this->paramPos = null; - } + $this->paramPos = null; if ($this->paramPos !== null) { $this->paramPos++; } ----------- end diff ----------- Applied rules: * RemoveAlwaysTrueIfConditionRector
69f1aba
to
ef1b3b2
Compare
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.
Thank you @kenjis
Description
Related #7649
The following refactoring will break the code.
Two tests will fail:
https://github.com/codeigniter4/CodeIgniter4/actions/runs/5449192482/jobs/9913186865
Checklist: