[Bridge/PhpUnit] Prefer ['argv'] over

This commit is contained in:
Ricardo de Vries 2017-12-04 12:06:27 +01:00 committed by Fabien Potencier
parent 1f2213a691
commit 1ff22e6acc
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ EOPHP
}
global $argv, $argc;
$argv = isset($_SERVER['argv']) ? $_SERVER['argv'] : array();
$argc = isset($_SERVER['argc']) ? $_SERVER['argc'] : 0;
$components = array();
$cmd = array_map('escapeshellarg', $argv);
$exit = 0;