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

Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector #5381

Merged
merged 4 commits into from
Dec 23, 2023

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Dec 23, 2023

This is based on mautic and private project ugprades. The methods like these are often used as form of enforcement to require child method to be implemented. Most often with return value.

That's why void causes a false positive as child classes return different value.

@TomasVotruba TomasVotruba changed the title tv skip void if exceptoin Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector Dec 23, 2023
@TomasVotruba TomasVotruba enabled auto-merge (squash) December 23, 2023 15:25
@TomasVotruba TomasVotruba merged commit 3cef752 into main Dec 23, 2023
40 of 41 checks passed
@TomasVotruba TomasVotruba deleted the tv-skip-void-if-exceptoin branch December 23, 2023 15:26
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