We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb0df5 commit fbb9fcbCopy full SHA for fbb9fcb
console/style.rst
@@ -286,7 +286,7 @@ User Input Methods
286
In case you need to validate the given value, pass a callback validator as
287
the third argument::
288
289
- $io->ask('Number of workers to start', 1, function ($number) {
+ $io->ask('Number of workers to start', '1', function ($number) {
290
if (!is_numeric($number)) {
291
throw new \RuntimeException('You must type a number.');
292
}
0 commit comments