Hi Rector Team: One question How would you deduplicate phpdoc blocks using rector? #7724
-
How to remove unexpected and useless php doc blocks that are sometimes generated through IDE many times again and again. Can it be fixed using a Rector? If not thanks anyway. Have a great day and keep on coding good stuff. For example something like that /**
* @var int $a
*/
/**
* @var int $a
*/
public function show($a)
{
//...some code goes here
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, should I rephrase my question or refine it? Is it too poor quality or off-topic to be answered? Please shed a light to let me understand what did I do wrong. |
Beta Was this translation helpful? Give feedback.
-
Hi, you can write a custom rule that checks "comments" attribute of the Here is how to write a custom rule: |
Beta Was this translation helpful? Give feedback.
Hi, you can write a custom rule that checks "comments" attribute of the
ClassMethod
nodeHere is how to write a custom rule:
https://getrector.com/documentation/custom-rule