phpcs-security-audit
phpcs-security-audit copied to clipboard
BadFunctions/NoEvals: add unit tests + minor fix
Related to #57, follow up on #70, this PR adds unit tests for the Security.BadFunctions.NoEvals sniff.
Commit Summary
BadFunctions/NoEvals: add unit tests
BadFunctions/NoEvals: error message precision
eval() is a language construct, not a function.
Ref: https://www.php.net/manual/en/function.eval.php
BadFunctions/NoEvals: remove redundant function call
$tokens is not used, so no need to declare it.
Anything I can do to move this PR forward ?