Skip to content

Commit 560f469

Browse files
committed
Add $argv and $argc to list of known superglobals.
1 parent b6cd334 commit 560f469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sniffs/CodeAnalysis/VariableAnalysisSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ protected function checkForSuperGlobal(
852852
$tokens = $phpcsFile->getTokens();
853853
$token = $tokens[$stackPtr];
854854

855-
// Are we a superglobal varaible?
855+
// Are we a superglobal variable?
856856
if (in_array($varName, array(
857857
'GLOBALS',
858858
'_SERVER',
@@ -863,6 +863,8 @@ protected function checkForSuperGlobal(
863863
'_SESSION',
864864
'_REQUEST',
865865
'_ENV',
866+
'argv',
867+
'argc',
866868
))) {
867869
return true;
868870
}

0 commit comments

Comments
 (0)