Skip to content

Commit 2b0db91

Browse files
tomegantcsjaviereguiluz
authored andcommitted
Correct what appears to be intended behavior vs actual behavior in documentation
When testing a command with an `InputOption::VALUE_NONE` option, and symfony/console v5.4.15 I have to provide a non-empty value to set the flag to the 'on' value. Perhaps this is changed in a later version?
1 parent 9db76e2 commit 2b0db91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,11 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
565565

566566
.. caution::
567567

568-
When testing ``InputOption::VALUE_NONE`` command options, you must pass an
568+
When testing ``InputOption::VALUE_NONE`` command options, you must pass a non
569569
empty value to them::
570570

571571
$commandTester = new CommandTester($command);
572-
$commandTester->execute(['--some-option' => '']);
572+
$commandTester->execute(['--some-option' => 'true']);
573573

574574
.. note::
575575

0 commit comments

Comments
 (0)