Skip to content

Commit ad71363

Browse files
committed
be consitent with ask() example
1 parent 2d77f5d commit ad71363

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

console/style.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ User Input Methods
248248

249249
$io->askHidden('What is your password?');
250250

251-
// validates the given answer
251+
In case you need to validate the given value, pass a callback validator as
252+
the second argument::
253+
252254
$io->askHidden('What is your password?', function ($password) {
253255
if (empty($password)) {
254256
throw new \RuntimeException('Password cannot be empty.');

0 commit comments

Comments
 (0)