phpinspectionsea
phpinspectionsea copied to clipboard
Dangling PhpDoc comment
Same as for Java:
Reports dangling Javadoc comments. Javadoc comment are dangling if they don't belong
to any class, method or field. For example a Javadoc comment in between method declarations
that have their own javadoc comments.
What about redundant doc comment?
/**
* @param string $name
*/
function show(string $name) : void {
echo trim($name);
}
I think this comment can be safely dropped out. It does not provide any new information.