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 5db2330 commit 4e75184Copy full SHA for 4e75184
Security/Sniffs/Misc/TypeJuggleSniff.php
@@ -28,7 +28,9 @@ public function register() {
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
- $phpcsFile->addWarning($warning, $stackPtr, 'TypeJuggle');
+ if (\PHP_CodeSniffer\Config::getConfigData('ParanoiaMode')) {
32
+ $phpcsFile->addWarning($warning, $stackPtr, 'TypeJuggle');
33
+ }
34
}
35
36
0 commit comments