#35010unused variable $errorMsg in logDeprecatedFunction
Description
// trigger PHP error with a short message: <function> is deprecated (called from <source>, defined in <source>)
$errorMsg = 'Function ' . $trail[1]['function'];
if ($trail[1]['class']) {
$errorMsg .= ' of class ' . $trail[1]['class'];
}
$errorMsg .= ' is deprecated (called from ' . $trail[1]['file'] . '#' . $trail[1]['line'] . ', defined in ' . $function->getFileName() . '#' . $function->getStartLine() . ')';
this nice code is not used later again which is really sad because it is a nice snippet of code.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.