mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Move the getSuperGlobalNames method to ArcanistBaseXHPASTLinter
Summary: Move the `getSuperGlobalNames` method to `ArcanistBaseXHPASTLinter` so that it can be used within subclasses. Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: virendra20888, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12473
This commit is contained in:
parent
46ce8a5a35
commit
eb5621c998
2 changed files with 14 additions and 14 deletions
|
@ -195,4 +195,18 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter {
|
|||
return idx($this->exceptions, $path);
|
||||
}
|
||||
|
||||
public function getSuperGlobalNames() {
|
||||
return array(
|
||||
'$GLOBALS',
|
||||
'$_SERVER',
|
||||
'$_GET',
|
||||
'$_POST',
|
||||
'$_FILES',
|
||||
'$_COOKIE',
|
||||
'$_SESSION',
|
||||
'$_REQUEST',
|
||||
'$_ENV',
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3753,18 +3753,4 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
|||
return AASTNodeList::newFromTreeAndNodes($root->getTree(), $nodes);
|
||||
}
|
||||
|
||||
public function getSuperGlobalNames() {
|
||||
return array(
|
||||
'$GLOBALS',
|
||||
'$_SERVER',
|
||||
'$_GET',
|
||||
'$_POST',
|
||||
'$_FILES',
|
||||
'$_COOKIE',
|
||||
'$_SESSION',
|
||||
'$_REQUEST',
|
||||
'$_ENV',
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue