We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a18669 commit 336946aCopy full SHA for 336946a
src/Symfony/Component/Console/Input/ArgvInput.php
@@ -49,7 +49,7 @@ class ArgvInput extends Input
49
*/
50
public function __construct(array $argv = null, InputDefinition $definition = null)
51
{
52
- $argv = $argv ?? $_SERVER['argv'] ?? [];
+ $argv = null !== $argv ? $argv : (isset($_SERVER['argv']) ? $_SERVER['argv'] : []);
53
54
// strip the application name
55
array_shift($argv);
0 commit comments