@@ -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<string|bool|int|float> $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 array<string|bool|int|float|\Stringable > $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 {
@@ -44,7 +44,7 @@ public function __construct(string $question, array $choices, string|bool|int|fl
4444 }
4545
4646 /**
47- * @return array<string|bool|int|float>
47+ * @return array<string|bool|int|float|\Stringable >
4848 */
4949 public function getChoices (): array
5050 {
0 commit comments