Skip to content

Commit 336946a

Browse files
committed
Fix tests on 5.6
1 parent 8a18669 commit 336946a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Input/ArgvInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ArgvInput extends Input
4949
*/
5050
public function __construct(array $argv = null, InputDefinition $definition = null)
5151
{
52-
$argv = $argv ?? $_SERVER['argv'] ?? [];
52+
$argv = null !== $argv ? $argv : (isset($_SERVER['argv']) ? $_SERVER['argv'] : []);
5353

5454
// strip the application name
5555
array_shift($argv);

0 commit comments

Comments
 (0)