We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2adbc commit f40e76eCopy full SHA for f40e76e
Security/Sniffs/Misc/TypeJuggleSniff.php
@@ -27,8 +27,8 @@ public function register() {
27
*/
28
public function process(File $phpcsFile, $stackPtr) {
29
$tokens = $phpcsFile->getTokens();
30
- $warning = 'You are using a comparison that converts type and may cause unintended results.';
31
if (\PHP_CodeSniffer\Config::getConfigData('ParanoiaMode')) {
+ $warning = 'You are using the comparison operator "'. $tokens[$stackPtr]['content'] .'" that converts type and may cause unintended results.';
32
$phpcsFile->addWarning($warning, $stackPtr, 'TypeJuggle');
33
}
34
0 commit comments