Skip to content

Commit

Permalink
refs #2373 - Change error type string and do not pass the default emp…
Browse files Browse the repository at this point in the history
…ty array
  • Loading branch information
Morerice committed Dec 10, 2019
1 parent a9433a0 commit 6a09f8c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 6a09f8c

Please sign in to comment.