Skip to content

Commit 6a09f8c

Browse files
committed
refs #2373 - Change error type string and do not pass the default empty array
1 parent a9433a0 commit 6a09f8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperGlobalSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ public function process(File $phpcsFile, $stackPtr)
4545
return;
4646
}
4747

48-
$type = 'RequestSuperGlobalAccessed';
4948
$error = 'The $_REQUEST super global should not be used. Use $_GET, $_POST or $_COOKIE instead';
50-
$phpcsFile->addError($error, $stackPtr, $type, []);
49+
$phpcsFile->addError($error, $stackPtr, 'Found');
5150

5251
}//end process()
5352

0 commit comments

Comments
 (0)