My source code generates the following error with PHP_CodeSniffer. "Doc comment for var &$myVar does not match actual variable name $myVar at position 2"
PEAR.Commenting.FunctionComment.ParamNameNoMatch
The code:
/**
* Function comment
*
* @param object $newVar some comment
* @param array &$myVar some comment
*
* @return null
*/
private function _myFunction($newVar, &$myVar) {
// my code here...
}
What could be the reason?