minor #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 #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)
This commit is contained in:
commit
7d07d24bfd
|
@ -185,8 +185,8 @@ abstract class Input implements InputInterface
|
|||
/**
|
||||
* Sets an option value by name.
|
||||
*
|
||||
* @param string $name The option name
|
||||
* @param string $value The option value
|
||||
* @param string $name The option name
|
||||
* @param string|boolean $value The option value
|
||||
*
|
||||
* @throws \InvalidArgumentException When option given doesn't exist
|
||||
*/
|
||||
|
|
|
@ -120,8 +120,8 @@ interface InputInterface
|
|||
/**
|
||||
* Sets an option value by name.
|
||||
*
|
||||
* @param string $name The option name
|
||||
* @param string $value The option value
|
||||
* @param string $name The option name
|
||||
* @param string|boolean $value The option value
|
||||
*
|
||||
* @throws \InvalidArgumentException When option given doesn't exist
|
||||
*/
|
||||
|
|
Reference in New Issue