Skip to content
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] Add ParentPropertyLookupGuard service #2152

Merged
merged 4 commits into from
Apr 24, 2022

Conversation

samsonasik
Copy link
Member

Add ParentPropertyLookupGuard service that can be re-used by other rules that validate that property is in parent and/or used by parent.

This can be used to validate final class with protected property with extends, and parent doesn't has property or doesn't use it, eg: in TypedPropertyRector, but that can be separate PR.

@samsonasik
Copy link
Member Author

Added handling when class has extends, but parent is not autoloaded, then it return false.

@TomasVotruba
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants