Skip to content

Commit 0c1bfa3

Browse files
authored
Remove php_errormsg from superglobals list (sirbrillig#269)
1 parent a3e3a84 commit 0c1bfa3

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Tests/VariableAnalysisSniff/fixtures/FunctionWithGlobalVarFixture.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function function_with_reserved_variables() {
6767
return [
6868
$response,
6969
$response_headers,
70-
$php_errormsg,
7170
$HTTP_RAW_POST_DATA,
7271
];
7372
}

VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,6 @@ protected function processVariableAsSuperGlobal($varName)
972972
'_ENV',
973973
'argv',
974974
'argc',
975-
'php_errormsg',
976975
'http_response_header',
977976
'HTTP_RAW_POST_DATA',
978977
];

0 commit comments

Comments
 (0)