phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
GNU General Public License v3.0
712
stars
85
forks
source link
Misc/TypeJuggle: add unit tests + minor fix #76
Open
jrfnl opened 4 years ago
Related to #57, follow up on #70, this PR adds unit tests for the
Security.Misc.TypeJuggle
sniff.Commit Summary
Misc/TypeJuggle: add unit tests
Misc/TypeJuggle: use the build-in PHPCS functionality
The PHPCS
addError()
andaddWarning()
functions have a build-in string replacementsprintf()
-like functionality, so let's use it.