diff --git a/lib/cli/Streams.php b/lib/cli/Streams.php index 85e2929..b6fc727 100755 --- a/lib/cli/Streams.php +++ b/lib/cli/Streams.php @@ -156,7 +156,7 @@ public static function input( $format = null, $hide = false ) { * @return string The users input. * @see cli\input() */ - public static function prompt( $question, $default = null, $marker = ': ', $hide = false ) { + public static function prompt( $question, $default = false, $marker = ': ', $hide = false ) { if( $default && strpos( $question, '[' ) === false ) { $question .= ' [' . $default . ']'; } diff --git a/lib/cli/cli.php b/lib/cli/cli.php index 6aeb867..86756cb 100755 --- a/lib/cli/cli.php +++ b/lib/cli/cli.php @@ -94,7 +94,7 @@ function input( $format = null ) { * continue displaying until input is received. * * @param string $question The question to ask the user. - * @param string $default A default value if the user provides no input. + * @param string|false $default A default value if the user provides no input. Default false. * @param string $marker A string to append to the question and default value on display. * @param boolean $hide If the user input should be hidden * @return string The users input.