8000 Simplify code · symfony/symfony@656fc3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 656fc3b

Browse files
committed
Simplify code
1 parent 5ad8c2a commit 656fc3b

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
@@ -48,7 +48,7 @@ class ArgvInput extends Input
4848
*/
4949
public function __construct(array $argv = null, InputDefinition $definition = null)
5050
{
51-
$argv = null !== $argv ? $argv : (isset($_SERVER['argv']) ? $_SERVER['argv'] : []);
51+
$argv = $argv ?? $_SERVER['argv'] ?? [];
5252

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

0 commit comments

Comments
 (0)
0