Skip to content

Rename RemoveSetterGetterDocblockFixer to RemoveMethodNameDuplicateDescriptionFixer #66

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

Merged
merged 1 commit into from
May 5, 2025

Conversation

MatTheCat
Copy link
Contributor

Fixes #65

@TomasVotruba
Copy link
Member

Could you add "ClassMethod" to the name? We already have similar rule for classes, so we avoid mixing them up

@MatTheCat
Copy link
Contributor Author

Hm since in PHP “method” really means “function in a class” WDYT of RemoveRedundantMethodDescriptionFixer? Trying to save as much length as possible 😅

@TomasVotruba
Copy link
Member

Sure :) 👍

@TomasVotruba
Copy link
Member

TomasVotruba commented May 5, 2025

One last note, instead of ambiguous "redundant", it would be better something "name-based" or "method-name-duplicate". This rule only removes docblocks that are equal to the method name 👍

@MatTheCat
Copy link
Contributor Author

RemoveMethodNameDuplicateDescriptionFixer then?

@MatTheCat MatTheCat changed the title Rename RemoveSetterGetterDocblockFixer to RemoveRedundantDescriptionFixer Rename RemoveSetterGetterDocblockFixer to RemoveMethodNameDuplicateDescriptionFixer May 5, 2025
@TomasVotruba
Copy link
Member

Awesome, thank you for the changes 🙏

@TomasVotruba TomasVotruba merged commit 48ebe24 into symplify:main May 5, 2025
6 checks passed
@MatTheCat MatTheCat deleted the ticket_65 branch May 5, 2025 13:30
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.

RemoveSetterGetterDocblockFixer’s name is misleading
2 participants