null]; /** * @inheritdoc */ protected function addError($phpcsFile, $stackPtr, $function, $pattern = null) { $data = [$function]; $error = 'The usage of %s() is forbidden'; $type = 'Found'; if ($this->error === true) { $phpcsFile->addError($error, $stackPtr, $type, $data); } else { $phpcsFile->addWarning($error, $stackPtr, $type, $data); } } }