Skip to content

Commit 9f23e41

Browse files
committed
Use superglobals service
1 parent 0995024 commit 9f23e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ public static function wrap(?string $string = null, int $max = 0, int $padLeft =
849849
protected static function parseCommandLine()
850850
{
851851
/** @var list<string> $tokens */
852-
$tokens = $_SERVER['argv'] ?? [];
852+
$tokens = service('superglobals')->server('argv', []);
853853
array_shift($tokens); // scrap application name
854854

855855
$parseOptions = true;

0 commit comments

Comments
 (0)