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 5e2200b commit c2a6c76Copy full SHA for c2a6c76
Input/ArgvInput.php
@@ -49,9 +49,7 @@ class ArgvInput extends Input
49
*/
50
public function __construct(array $argv = null, InputDefinition $definition = null)
51
{
52
- if (null === $argv) {
53
- $argv = $_SERVER['argv'];
54
- }
+ $argv = $argv ?? $_SERVER['argv'] ?? [];
55
56
// strip the application name
57
array_shift($argv);
0 commit comments