diff --git a/src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperGlobalSniff.php b/src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperGlobalSniff.php index 6b04feb7bc..6ef89f7213 100644 --- a/src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperGlobalSniff.php +++ b/src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperGlobalSniff.php @@ -45,9 +45,8 @@ public function process(File $phpcsFile, $stackPtr) return; } - $type = 'RequestSuperGlobalAccessed'; $error = 'The $_REQUEST super global should not be used. Use $_GET, $_POST or $_COOKIE instead'; - $phpcsFile->addError($error, $stackPtr, $type, []); + $phpcsFile->addError($error, $stackPtr, 'Found'); }//end process()