Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ User Input Methods
In case you need to validate the given value, pass a callback validator as
the third argument::

$io->ask('Number of workers to start', 1, function ($number) {
$io->ask('Number of workers to start', '1', function ($number) {
if (!is_numeric($number)) {
throw new \RuntimeException('You must type a number.');
}
Expand Down