Skip to content

Commit 2b9c5fa

Browse files
Merge branch '6.4' into 7.3
* 6.4: [SecurityBundle] Remove legacy parameter in SecurityDataCollectorTest [Console] Specify types of interactive question choices Prevent duplicate entries in module preloads prefer the public API over reflection in test
2 parents 966b6f4 + 6ef58ef commit 2b9c5fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Question/ChoiceQuestion.php

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

2727
/**
28-
* @param string $question The question to ask to the user
29-
* @param array $choices The list of available choices
30-
* @param string|bool|int|float|null $default The default answer to return
28+
* @param string $question The question to ask to the user
29+
* @param array<string|bool|int|float> $choices The list of available choices
30+
* @param string|bool|int|float|null $default The default answer to return
3131
*/
3232
public function __construct(
3333
string $question,
@@ -45,7 +45,7 @@ public function __construct(
4545
}
4646

4747
/**
48-
* Returns available choices.
48+
* @return array<string|bool|int|float>
4949
*/
5050
public function getChoices(): array
5151
{

0 commit comments

Comments
 (0)