[Console] Fix input values allowed types
This commit is contained in:
parent
86a5d92ce7
commit
0c16cd9fae
@ -86,7 +86,7 @@ class InputArgument
|
|||||||
/**
|
/**
|
||||||
* Sets the default value.
|
* 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
|
* @throws LogicException When incorrect default value is given
|
||||||
*/
|
*/
|
||||||
@ -110,7 +110,7 @@ class InputArgument
|
|||||||
/**
|
/**
|
||||||
* Returns the default value.
|
* Returns the default value.
|
||||||
*
|
*
|
||||||
* @return mixed The default value
|
* @return string|string[] The default value
|
||||||
*/
|
*/
|
||||||
public function getDefault()
|
public function getDefault()
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,7 @@ interface InputInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The argument name
|
* @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
|
* @throws InvalidArgumentException When argument given doesn't exist
|
||||||
*/
|
*/
|
||||||
@ -120,7 +120,7 @@ interface InputInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The option name
|
* @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
|
* @throws InvalidArgumentException When option given doesn't exist
|
||||||
*/
|
*/
|
||||||
|
@ -149,7 +149,7 @@ class InputOption
|
|||||||
/**
|
/**
|
||||||
* Sets the default value.
|
* 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
|
* @throws LogicException When incorrect default value is given
|
||||||
*/
|
*/
|
||||||
@ -173,7 +173,7 @@ class InputOption
|
|||||||
/**
|
/**
|
||||||
* Returns the default value.
|
* Returns the default value.
|
||||||
*
|
*
|
||||||
* @return mixed The default value
|
* @return string|string[]|bool The default value
|
||||||
*/
|
*/
|
||||||
public function getDefault()
|
public function getDefault()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user