Skip to content

Commit 1a20553

Browse files
authored
fix: argv index error
1 parent a75b027 commit 1a20553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __construct(array $argv = null)
9898
$this->script = array_shift($argv);
9999

100100
// parse flags
101-
[$this->args, $this->opts] = Flags::parseArgv($argv, [
101+
[$this->args, $this->opts] = Flags::parseArgv(array_values($argv), [
102102
'mergeOpts' => true
103103
]);
104104
}

0 commit comments

Comments
 (0)