Skip to content

Commit 430f4ef

Browse files
committed
minor #16821 [Console] Clarify VALUE_IS_ARRAY usage (guesmiii)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] Clarify VALUE_IS_ARRAY usage VALUE_IS_ARRAY can't be used alone and must be combined with VALUE_REQUIRED or VALUE_OPTIONAL else we will get InvalidArgumentException('Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.') <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- e1b7cc2 Clarify VALUE_IS_ARRAY usage
2 parents 0a98e21 + e1b7cc2 commit 430f4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/input.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ There are four option variants you can use:
217217
This option may or may not have a value (e.g. ``--yell`` or
218218
``--yell=loud``).
219219

220-
You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
220+
You need to combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
221221
``VALUE_OPTIONAL`` like this::
222222

223223
$this

0 commit comments

Comments
 (0)