diff --git a/coder_sniffer/Drupal/Sniffs/Semantics/FunctionUnsilencedDeprecationSniff.php b/coder_sniffer/Drupal/Sniffs/Semantics/FunctionUnsilencedDeprecationSniff.php index b15d0b40..aee8bb7f 100644 --- a/coder_sniffer/Drupal/Sniffs/Semantics/FunctionUnsilencedDeprecationSniff.php +++ b/coder_sniffer/Drupal/Sniffs/Semantics/FunctionUnsilencedDeprecationSniff.php @@ -68,7 +68,7 @@ public function processFunctionCall( if ($tokens[($stackPtr - 1)]['type'] !== 'T_ASPERAND') { $error = 'All trigger_error calls used for deprecation must be prefixed by an "@"'; - $phpcsFile->addError($error, $stackPtr, 'FunctionTriggerError'); + $phpcsFile->addError($error, $stackPtr, 'FunctionUnsilencedDeprecation'); } }//end processFunctionCall()