Skip to content

Hi Rector Team: One question How would you deduplicate phpdoc blocks using rector? #7724

Discussion options

You must be logged in to vote

Hi, you can write a custom rule that checks "comments" attribute of the ClassMethod node

Here is how to write a custom rule:
https://getrector.com/documentation/custom-rule

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alexandreelise
Comment options

Comment options

You must be logged in to vote
1 reply
@alexandreelise
Comment options

Answer selected by TomasVotruba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants