Skip to content

Commit 557d190

Browse files
Fix Issue #19
Correct the warning and error messages in CallBackFunctionsSniff
1 parent ea4120b commit 557d190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Security/Sniffs/BadFunctions/CallbackFunctionsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function process(File $phpcsFile, $stackPtr) {
4545
$msg = 'Function ' . $tokens[$stackPtr]['content'] . '() that supports callback detected';
4646
if ($s) {
4747
if ($utils::is_token_user_input($tokens[$s])) {
48-
$phpcsFile->addError($msg . ' with parameter directly from user input', $stackPtr, 'ErrFringestuff');
48+
$phpcsFile->addError($msg . ' with parameter directly from user input', $stackPtr, 'ErrCallbackFunctions');
4949
} else {
50-
$phpcsFile->addWarning($msg, $stackPtr, 'WarnFringestuff');
50+
$phpcsFile->addWarning($msg, $stackPtr, 'WarnCallbackFunctions');
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)