Skip to content

Commit f40e76e

Browse files
committed
added the operator in the warning message
1 parent ec2adbc commit f40e76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/Sniffs/Misc/TypeJuggleSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function register() {
2727
*/
2828
public function process(File $phpcsFile, $stackPtr) {
2929
$tokens = $phpcsFile->getTokens();
30-
$warning = 'You are using a comparison that converts type and may cause unintended results.';
3130
if (\PHP_CodeSniffer\Config::getConfigData('ParanoiaMode')) {
31+
$warning = 'You are using the comparison operator "'. $tokens[$stackPtr]['content'] .'" that converts type and may cause unintended results.';
3232
$phpcsFile->addWarning($warning, $stackPtr, 'TypeJuggle');
3333
}
3434
}

0 commit comments

Comments
 (0)