Skip to content

Commit 7d07d24

Browse files
committed
minor symfony#10174 [Console] Option can be bool too (eg. --force) (Jmoati)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes symfony#10174). Discussion ---------- [Console] Option can be bool too (eg. --force) Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes License of the code: MIT Commits ------- aa87eeb Option can be bool too (eg. --force)
2 parents e973fa4 + 4184292 commit 7d07d24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Console/Input/Input.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public function getOption($name)
185185
/**
186186
* Sets an option value by name.
187187
*
188-
* @param string $name The option name
189-
* @param string $value The option value
188+
* @param string $name The option name
189+
* @param string|boolean $value The option value
190190
*
191191
* @throws \InvalidArgumentException When option given doesn't exist
192192
*/

src/Symfony/Component/Console/Input/InputInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public function getOption($name);
120120
/**
121121
* Sets an option value by name.
122122
*
123-
* @param string $name The option name
124-
* @param string $value The option value
123+
* @param string $name The option name
124+
* @param string|boolean $value The option value
125125
*
126126
* @throws \InvalidArgumentException When option given doesn't exist
127127
*/

0 commit comments

Comments
 (0)