|
@@ -130,7 +130,7 @@ |
|
|
block discarded – undo |
|
130
|
130
|
$default = $input->getOption('default'); |
|
131
|
131
|
if (!$input->getArgument($name) && !$default && $name !== $this->arguments[1]) { |
|
132
|
132
|
$question = new Question(sprintf('<question>Please enter %s:</question>', $name)); |
|
133
|
|
- $question->setValidator(function ($argument) use ($name) { |
|
|
133
|
+ $question->setValidator(function($argument) use ($name) { |
|
134
|
134
|
if (empty($argument)) { |
|
135
|
135
|
throw new \RuntimeException(sprintf('The %s can not be empty', $name)); |
|
136
|
136
|
} |
Please login to merge, or discard this patch.