Skip to content

Commit fa99fb4

Browse files
committed
[Console] Specify types of interactive question choices
1 parent d5c1195 commit fa99fb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Console/Question/ChoiceQuestion.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class ChoiceQuestion extends Question
2626
private string $errorMessage = 'Value "%s" is invalid';
2727

2828
/**
29-
* @param string $question The question to ask to the user
30-
* @param array $choices The list of available choices
31-
* @param string|bool|int|float|null $default The default answer to return
29+
* @param string $question The question to ask to the user
30+
* @param list<string|bool|int|float> $choices The list of available choices
31+
* @param string|bool|int|float|null $default The default answer to return
3232
*/
3333
public function __construct(string $question, array $choices, string|bool|int|float|null $default = null)
3434
{

0 commit comments

Comments
 (0)