1
0
Fork 0

Show empty default value when one is specified

pull/303/merge
Jordi Boggiano 2012-02-16 20:38:43 +01:00
parent d1d9c715c9
commit 23aade21f0
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ class DialogHelper extends BaseDialogHelper
*
* @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>%s ', $question, $sep);
}