Skip to content

Commit

Permalink
Update optionInt method to return nullable int
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Jan 19, 2024
1 parent 405c67c commit 70ce740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Commandable.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function askOnProduction(?Closure $closure = null, bool $with_force = tru
}
}

public function optionInt(string $option, ?int $default = null): int
public function optionInt(string $option, ?int $default = null): ?int
{
$value = $this->option($option);

Expand Down

0 comments on commit 70ce740

Please sign in to comment.