Skip to content

Commit 50d6886

Browse files
committed
[symfony#2589] Minor tweaks to DialogHelper multi-select changes
1 parent 1ebbe71 commit 50d6886

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/console/helpers/dialoghelper.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ argument). The default value for the attempts is ``false``, which means infinite
208208
attempts. You can define your own error message in the sixth argument.
209209

210210
.. versionadded:: 2.3
211-
Multiselect support was new in Symfony 2.3
211+
Multiselect support was added in Symfony 2.3.
212212

213213
Multiple Choices
214214
................
215215

216216
Sometimes, multiple answers can be given. The DialogHelper provides this
217-
feature using comma seperated values. This is disabled by default, to enable
217+
feature using comma separated values. This is disabled by default, to enable
218218
this set the seventh argument to ``true``::
219219

220220
// ...
@@ -229,13 +229,13 @@ this set the seventh argument to ``true``::
229229
true // enable multiselect
230230
);
231231

232-
$selectedColors = array_map(funtion($c) use ($colors) {
232+
$selectedColors = array_map(function($c) use ($colors) {
233233
return $colors[$c];
234234
}, $selected)
235235

236236
$output->writeln('You have just selected: ' . implode(', ', $selectedColors));
237237

238-
Now, when the user inputted ``1,2``, the result will be: ``You have just selected: blue, yellow``
238+
Now, when the user enters ``1,2``, the result will be: ``You have just selected: blue, yellow``.
239239

240240
Testing a Command which expects input
241241
-------------------------------------

0 commit comments

Comments
 (0)