What is the error phpcodesniffer creates "The tag cannot be grouped with parameter tags in a document comment"

/** * @param Varien_Event_Observer $observer eventobserver * @return void */ 

phpCodesniffer generates the following error for the specified string.

41 | ERROR | A tag cannot be grouped with parameter tags in a document comment.

What is the reason?

+6
source share
1 answer

phpcodesniffer allocates a group of parameters in consecutive lines in the doc block of a function. Thus, adding a line between the param tag line and the return line will be compatible with the phpcodesniffer tag.

 /** * @param Varien_Event_Observer $observer eventobserver * * @return void */ 
+8
source

All Articles