File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ class ChoiceQuestion extends Question
26
26
private string $ errorMessage = 'Value "%s" is invalid ' ;
27
27
28
28
/**
29
- * @param string $question The question to ask to the user
30
- * @param array $choices The list of available choices
31
- * @param mixed $default The default answer to return
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
32
32
*/
33
- public function __construct (string $ question , array $ choices , mixed $ default = null )
33
+ public function __construct (string $ question , array $ choices , string | bool | int | float | null $ default = null )
34
34
{
35
35
if (!$ choices ) {
36
36
throw new \LogicException ('Choice question must have at least 1 choice available. ' );
You can’t perform that action at this time.
0 commit comments