Skip to content

Commit 26b60b4

Browse files
committed
Update Terminalia.php
1 parent 2285ea9 commit 26b60b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Mixins/Terminalia.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ public function termChoice()
2727
$filterable = false,
2828
$minFilterLength = 5,
2929
) {
30+
$choices = $choices instanceof Choices ? $choices : Choices::from($choices);
31+
3032
$helper = new Choice(
3133
output: $this->output,
3234
question: $question,
33-
choices: $choices instanceof Choices ? $choices : Choices::from($choices),
35+
choices: $choices,
3436
default: $default ?? [],
3537
);
3638

0 commit comments

Comments
 (0)