Skip to content

Commit

Permalink
minor #28448 [Console] Fix input values allowed types (chalasr)
Browse files Browse the repository at this point in the history
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
-------

0c16cd9 [Console] Fix input values allowed types
  • Loading branch information
fabpot committed Sep 12, 2018
2 parents 86a5d92 + 0c16cd9 commit d5a366f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Input/InputArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function isArray()
/**
* 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
*/
Expand All @@ -110,7 +110,7 @@ public function setDefault($default = null)
/**
* Returns the default value.
*
* @return mixed The default value
* @return string|string[] The default value
*/
public function getDefault()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Input/InputInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getArguments();
*
* @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
*/
Expand Down Expand Up @@ -120,7 +120,7 @@ public function getOptions();
*
* @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
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Input/InputOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function isArray()
/**
* 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
*/
Expand All @@ -173,7 +173,7 @@ public function setDefault($default = null)
/**
* Returns the default value.
*
* @return mixed The default value
* @return string|string[]|bool The default value
*/
public function getDefault()
{
Expand Down

0 comments on commit d5a366f

Please sign in to comment.