-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
[DeadCode] Skip clone and new self on RemoveUnusedPrivatePropertyRector #1215
Conversation
Fixed 🎉 |
All checks have passed 🎉 @TomasVotruba it is ready for review. |
f3b4ac3
to
098b6c7
Compare
} | ||
} | ||
|
||
private function isPropertyNameInNewCurrentClassNameSelfClone(string $propertyName, ?ClassLike $classLike): bool |
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.
Could you extract this to own service? The logic seems quite complex
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.
implemented, I moved to new service ForbiddenPropertyRemovalAnalyzer
12bf694
All checks have passed 🎉 @TomasVotruba I think it is ready. |
Thank you 👍 |
Given the following code:
It produce:
which should be skipped, ref https://3v4l.org/jjNe3