Skip to content

Commit d8059e2

Browse files
committed
Add missing autocomplete argument in askAndValidate method
1 parent 252ffe7 commit d8059e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: components/console/helpers/dialoghelper.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ This methods has 2 new arguments, the full signature is::
130130
string|array $question,
131131
callback $validator,
132132
integer $attempts = false,
133-
string $default = null
133+
string $default = null,
134+
array $autocomplete = null
134135
)
135136

136137
The ``$validator`` is a callback which handles the validation. It should
@@ -139,8 +140,8 @@ in the console, so it is a good practice to put some useful information in it. T
139140
function should also return the value of the user's input if the validation was successful.
140141

141142
You can set the max number of times to ask in the ``$attempts`` argument.
142-
If you reach this max number it will use the default value, which is given
143-
in the last argument. Using ``false`` means the amount of attempts is infinite.
143+
If you reach this max number it will use the default value.
144+
Using ``false`` means the amount of attempts is infinite.
144145
The user will be asked as long as they provide an invalid answer and will only
145146
be able to proceed if their input is valid.
146147

0 commit comments

Comments
 (0)