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 aee9618 commit bd64617Copy full SHA for bd64617
console/style.rst
@@ -278,7 +278,7 @@ User Input Methods
278
In case you need to validate the given value, pass a callback validator as
279
the third argument::
280
281
- $io->ask('Number of workers to start', 1, function ($number) {
+ $io->ask('Number of workers to start', '1', function ($number) {
282
if (!is_numeric($number)) {
283
throw new \RuntimeException('You must type a number.');
284
}
0 commit comments