Skip to content

Commit 5b7358e

Browse files
Rename alert messages in SQLFunctionsSniff
1 parent 557d190 commit 5b7358e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Security/Sniffs/BadFunctions/SQLFunctionsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public function process(File $phpcsFile, $stackPtr) {
3838
if ($s) {
3939
$msg = 'SQL function ' . $tokens[$stackPtr]['content'] . '() detected with dynamic parameter ';
4040
if ($utils::is_token_user_input($tokens[$s])) {
41-
$phpcsFile->addError($msg . ' directly from user input', $stackPtr, 'ErrFilesystem');
41+
$phpcsFile->addError($msg . ' directly from user input', $stackPtr, 'ErrSQLFunction');
4242
} else {
43-
$phpcsFile->addWarning($msg, $stackPtr, 'WarnFilesystem');
43+
$phpcsFile->addWarning($msg, $stackPtr, 'WarnSQLFunction');
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)