8000 minor #21028 [Console] Updated phpdoc on return types (mlpo) · dmaicher/symfony@be691d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit be691d5

Browse files
committed
minor symfony#21028 [Console] Updated phpdoc on return types (mlpo)
This PR was merged into the 2.7 branch. Discussion ---------- [Console] Updated phpdoc on return types | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a The return type of “ask” is not necessarily a string (notice that “doAsk” may return mixed type). Same for “validateAttempts” (validator may return something else than a string). Commits ------- 442a304 [Console] Updated phpdoc on return types
2 parents ff75e32 + 442a304 commit be691d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class QuestionHelper extends Helper
3737
* @param OutputInterface $output An OutputInterface instance
3838
* @param Question $question The question to ask
3939
*
40-
* @return string The user answer
40+
* @return mixed The user answer
4141
*
4242
* @throws \RuntimeException If there is no data to read in the input stream
4343
*/
@@ -383,7 +383,7 @@ private function getHiddenResponse(OutputInterface $output, $inputStream)
383383
* @param OutputInterface $output An Output instance
384384
* @param Question $question A Question instance
385385
*
386-
* @return string The validated response
386+
* @return mixed The validated response
387387
*
388388
* @throws \Exception In case the max number of attempts has been reached and no valid response has been given
389389
*/

0 commit comments

Comments
 (0)
0