Fix tests on 5.6

This commit is contained in:
Fabien Potencier 2020-09-09 07:09:37 +02:00
parent 8a186697dc
commit 336946a499

View File

@ -49,7 +49,7 @@ class ArgvInput extends Input
*/
public function __construct(array $argv = null, InputDefinition $definition = null)
{
$argv = $argv ?? $_SERVER['argv'] ?? [];
$argv = null !== $argv ? $argv : (isset($_SERVER['argv']) ? $_SERVER['argv'] : []);
// strip the application name
array_shift($argv);