diff --git a/Tests/VariableAnalysisSniff/fixtures/FunctionWithGlobalVarFixture.php b/Tests/VariableAnalysisSniff/fixtures/FunctionWithGlobalVarFixture.php index 4bbd7dd..3dbc8c3 100644 --- a/Tests/VariableAnalysisSniff/fixtures/FunctionWithGlobalVarFixture.php +++ b/Tests/VariableAnalysisSniff/fixtures/FunctionWithGlobalVarFixture.php @@ -67,7 +67,6 @@ function function_with_reserved_variables() { return [ $response, $response_headers, - $php_errormsg, $HTTP_RAW_POST_DATA, ]; } diff --git a/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php b/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php index ffcd8b8..a3ff077 100644 --- a/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php +++ b/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php @@ -972,7 +972,6 @@ protected function processVariableAsSuperGlobal($varName) '_ENV', 'argv', 'argc', - 'php_errormsg', 'http_response_header', 'HTTP_RAW_POST_DATA', ];