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

Support final methods in ClassMethodReturnTypeOverrideGuard #4509

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 14, 2023

when methods are final we don't need to skip them when inferring types, as they cannot be overridden by a potential subclass and therefore cannot get in conflict with method declarations down the type hierarchy.

this PR effectively enables the feature for all rules which use ClassMethodReturnTypeOverrideGuard

@TomasVotruba
Copy link
Member

Looks good, thank you 👍

@TomasVotruba TomasVotruba merged commit f33da13 into rectorphp:main Jul 14, 2023
41 checks passed
@staabm staabm deleted the no-final-protect branch July 14, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants