8000 [Console] Clarify VALUE_IS_ARRAY usage by mohamedGasmii · Pull Request #16821 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Console] Clarify VALUE_IS_ARRAY usage #16821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2022
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
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.')
  • Loading branch information
guesmiii authored May 23, 2022
commit e1b7cc21a3eefa38c761e796d2488d2f41be2708
2 changes: 1 addition & 1 deletion console/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ There are four option variants you can use:
This option may or may not have a value (e.g. ``--yell`` or
``--yell=loud``).

You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
You need to combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
``VALUE_OPTIONAL`` like this::

$this
Expand Down
0