minor #28448 [Console] Fix input values allowed types (chalasr)

This PR was merged into the 2.8 branch.

Discussion
----------

[Console] Fix input values allowed types

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Continuation of #28374

Commits
-------

0c16cd9fae [Console] Fix input values allowed types
This commit is contained in:
Fabien Potencier 2018-09-12 07:05:17 +02:00
commit d5a366faa1
3 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@ class InputArgument
/**
* Sets the default value.
*
* @param mixed $default The default value
* @param string|string[] $default The default value
*
* @throws LogicException When incorrect default value is given
*/
@ -110,7 +110,7 @@ class InputArgument
/**
* Returns the default value.
*
* @return mixed The default value
* @return string|string[] The default value
*/
public function getDefault()
{

View File

@ -83,7 +83,7 @@ interface InputInterface
*
* @param string $name The argument name
*
* @return mixed The argument value
* @return string|string[] The argument value
*
* @throws InvalidArgumentException When argument given doesn't exist
*/
@ -120,7 +120,7 @@ interface InputInterface
*
* @param string $name The option name
*
* @return mixed The option value
* @return string|string[]|bool The option value
*
* @throws InvalidArgumentException When option given doesn't exist
*/

View File

@ -149,7 +149,7 @@ class InputOption
/**
* Sets the default value.
*
* @param mixed $default The default value
* @param string|string[]|bool $default The default value
*
* @throws LogicException When incorrect default value is given
*/
@ -173,7 +173,7 @@ class InputOption
/**
* Returns the default value.
*
* @return mixed The default value
* @return string|string[]|bool The default value
*/
public function getDefault()
{