summaryrefslogtreecommitdiff
path: root/cli/CliOptionsParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/CliOptionsParser.php')
-rw-r--r--cli/CliOptionsParser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/CliOptionsParser.php b/cli/CliOptionsParser.php
index f75f6c19a..9fb50a4ff 100644
--- a/cli/CliOptionsParser.php
+++ b/cli/CliOptionsParser.php
@@ -43,7 +43,7 @@ abstract class CliOptionsParser {
* @param string $defaultInput If not null this value is received as input in all cases where no
* user input is present. e.g. set this if you want an option to always return a value.
*/
- protected function addOption(string $name, CliOption $option, string $defaultInput = null): void {
+ protected function addOption(string $name, CliOption $option, ?string $defaultInput = null): void {
$this->inputs[$name] = [
'defaultInput' => is_string($defaultInput) ? [$defaultInput] : $defaultInput,
'required' => null,