Skip to content

Commit

Permalink
[console] Update askEmpty validator. (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Nov 1, 2017
1 parent 115460e commit f7f0265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Style/DrupalStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public function askHiddenEmpty($question)
*/
public function askEmpty($question, $validator = null)
{
$question = new Question($question, ' ');
$question->setValidator($validator);
$question = new Question($question, '');
$question->setValidator(function ($answer) { return $answer; });

return trim($this->askQuestion($question));
}
Expand Down

0 comments on commit f7f0265

Please sign in to comment.