22 $error =
'The usage of %s() is forbidden';
25 if ($this->error ===
true) {
26 $phpcsFile->addError($error, $stackPtr,
$type,
$data);
28 $phpcsFile->addWarning($error, $stackPtr,
$type,
$data);
addError($phpcsFile, $stackPtr, $function, $pattern=null)