Fix type hints to match latest symfony, fixes #7199
parent
c9aa9c0d2f
commit
1336029b72
|
@ -103,8 +103,8 @@ interface IOInterface
|
||||||
/**
|
/**
|
||||||
* Asks a question to the user.
|
* Asks a question to the user.
|
||||||
*
|
*
|
||||||
* @param string|array $question The question to ask
|
* @param string $question The question to ask
|
||||||
* @param string $default The default answer if none is given by the user
|
* @param string $default The default answer if none is given by the user
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException If there is no data to read in the input stream
|
* @throws \RuntimeException If there is no data to read in the input stream
|
||||||
* @return string The user answer
|
* @return string The user answer
|
||||||
|
@ -116,8 +116,8 @@ interface IOInterface
|
||||||
*
|
*
|
||||||
* The question will be asked until the user answers by nothing, yes, or no.
|
* The question will be asked until the user answers by nothing, yes, or no.
|
||||||
*
|
*
|
||||||
* @param string|array $question The question to ask
|
* @param string $question The question to ask
|
||||||
* @param bool $default The default answer if the user enters nothing
|
* @param bool $default The default answer if the user enters nothing
|
||||||
*
|
*
|
||||||
* @return bool true if the user has confirmed, false otherwise
|
* @return bool true if the user has confirmed, false otherwise
|
||||||
*/
|
*/
|
||||||
|
@ -130,10 +130,10 @@ interface IOInterface
|
||||||
* validated data when the data is valid and throw an exception
|
* validated data when the data is valid and throw an exception
|
||||||
* otherwise.
|
* otherwise.
|
||||||
*
|
*
|
||||||
* @param string|array $question The question to ask
|
* @param string $question The question to ask
|
||||||
* @param callable $validator A PHP callback
|
* @param callable $validator A PHP callback
|
||||||
* @param null|int $attempts Max number of times to ask before giving up (default of null means infinite)
|
* @param null|int $attempts Max number of times to ask before giving up (default of null means infinite)
|
||||||
* @param mixed $default The default answer if none is given by the user
|
* @param mixed $default The default answer if none is given by the user
|
||||||
*
|
*
|
||||||
* @throws \Exception When any of the validators return an error
|
* @throws \Exception When any of the validators return an error
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
@ -152,12 +152,12 @@ interface IOInterface
|
||||||
/**
|
/**
|
||||||
* Asks the user to select a value.
|
* Asks the user to select a value.
|
||||||
*
|
*
|
||||||
* @param string|array $question The question to ask
|
* @param string $question The question to ask
|
||||||
* @param array $choices List of choices to pick from
|
* @param array $choices List of choices to pick from
|
||||||
* @param bool|string $default The default answer if the user enters nothing
|
* @param bool|string $default The default answer if the user enters nothing
|
||||||
* @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite)
|
* @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite)
|
||||||
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
|
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
|
||||||
* @param bool $multiselect Select more than one value separated by comma
|
* @param bool $multiselect Select more than one value separated by comma
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return int|string|array The selected value or values (the key of the choices array)
|
* @return int|string|array The selected value or values (the key of the choices array)
|
||||||
|
|
Loading…
Reference in New Issue