⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/commands/AbstractBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ protected function setRunwayConfigValue(string $key, $value): void {
*
* @return $this
*/
public function addOption(string $name, $shortcut = null, int $mode = null, string $description = '', $default = null): self {
public function addOption(string $name, $shortcut = null, ?int $mode = null, string $description = '', $default = null): self
{
// Build raw option format Ahc\Cli expects, e.g. "-s, --name" or "--name"
$raw = '';

Expand Down Expand Up @@ -139,7 +140,8 @@ public function addOption(string $name, $shortcut = null, int $mode = null, stri
*
* @return $this
*/
public function addArgument(string $name, int $mode = null, string $description = '', $default = null): self {
public function addArgument(string $name, ?int $mode = null, string $description = '', $default = null): self
{
if ($mode === null) {
$mode = self::OPTIONAL;
}
Expand Down