-
-
Notifications
You must be signed in to change notification settings - Fork 424
[DeadCode] Skip with different default param value child vs parent on RemoveParentDelegatingConstructorRector #7776
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
… RemoveParentDelegatingConstructorRector
f2dd62b to
5c398e3
Compare
|
Fixed 🎉 /cc @franck-paul |
|
@TomasVotruba ready 👍 |
|
Nice, it's Christmas before Christmas \o/ |
| if ($parentDefault !== $currentDefault) { | ||
| return false; | ||
| } | ||
| } |
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 👍
Could you extract method here to make code more readable?
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.
sure, extracted logic to different method 👍 fded309
|
@TomasVotruba ready 👍 |
|
Thank you 👍 |
Fixes rectorphp/rector#9571