Show empty default value when one is specified
parent
d1d9c715c9
commit
23aade21f0
|
@ -28,9 +28,9 @@ class DialogHelper extends BaseDialogHelper
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getQuestion($question, $default, $sep = ':')
|
public function getQuestion($question, $default = null, $sep = ':')
|
||||||
{
|
{
|
||||||
return $default ?
|
return $default !== null ?
|
||||||
sprintf('<info>%s</info> [<comment>%s</comment>]%s ', $question, $default, $sep) :
|
sprintf('<info>%s</info> [<comment>%s</comment>]%s ', $question, $default, $sep) :
|
||||||
sprintf('<info>%s</info>%s ', $question, $sep);
|
sprintf('<info>%s</info>%s ', $question, $sep);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue