Skip to content

Commit 98137b6

Browse files
committed
BadFunctions/NoEvals: error message precision
`eval()` is a language construct, not a function. Ref: https://www.php.net/manual/en/function.eval.php
1 parent da4960c commit 98137b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/Sniffs/BadFunctions/NoEvalsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function register() {
2727
*/
2828
public function process(File $phpcsFile, $stackPtr) {
2929
$tokens = $phpcsFile->getTokens();
30-
$error = 'Please do not use eval() functions';
30+
$error = 'Please do not use eval()';
3131
$phpcsFile->addError($error, $stackPtr, 'NoEvals');
3232
}
3333

0 commit comments

Comments
 (0)