Skip to content

Commit 9235b07

Browse files
committed
Fix potential unset array key access
1 parent f9f7843 commit 9235b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function run(array $env) {
7979

8080
$this->preBootstrap();
8181
$input = $this->setupInput();
82-
$input->process($env['argv'] ?: array());
82+
$input->process(isset($env['argv']) ? $env['argv'] : array());
8383

8484
if ($input->getOption('help')->value === TRUE) {
8585
$this->showVersion();

0 commit comments

Comments
 (0)