1
0
Fork 0

Fix type hints to match latest symfony, fixes #7199

pull/7158/merge
Jordi Boggiano 2018-04-12 17:36:57 +02:00
parent c9aa9c0d2f
commit 1336029b72
1 changed files with 14 additions and 14 deletions

View File

@ -103,7 +103,7 @@ 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
@ -116,7 +116,7 @@ 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,7 +130,7 @@ 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
@ -152,7 +152,7 @@ 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)