diff --git a/framework/helpers/BaseConsole.php b/framework/helpers/BaseConsole.php index cfc75c71aa..84a2c22a30 100644 --- a/framework/helpers/BaseConsole.php +++ b/framework/helpers/BaseConsole.php @@ -781,7 +781,7 @@ class BaseConsole ? static::input("$text [" . $options['default'] . '] ') : static::input("$text "); - if (!strlen($input)) { + if ($input === '') { if (isset($options['default'])) { $input = $options['default']; } elseif ($options['required']) {