Skip to content

Commit 1b23779

Browse files
committed
minor #15309 Add explicit note about the type of VALUE_NONE (melkamar)
This PR was submitted for the 5.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- Add explicit note about the type of VALUE_NONE It was not clear what the default value nor what the type returned from InputOption::VALUE_NONE is. <!-- 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 `5.x` for features of unreleased versions). --> Commits ------- 403cb33 Add explicit note about the type of VALUE_NONE
2 parents 7585026 + 403cb33 commit 1b23779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/input.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ There are four option variants you can use:
205205
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``);
206206

207207
``InputOption::VALUE_NONE``
208-
Do not accept input for this option (e.g. ``--yell``). This is the default
209-
behavior of options;
208+
Do not accept input for this option (e.g. ``--yell``). The value returned from this option will be a boolean, ``false`` if the option is not provided.
209+
This is the default behavior of options;
210210

211211
``InputOption::VALUE_REQUIRED``
212212
This value is required (e.g. ``--iterations=5`` or ``-i5``), the option

0 commit comments

Comments
 (0)