Skip to content

Commit 3349d3c

Browse files
authored
Remove restriction for choices to be strings
1 parent c732122 commit 3349d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private function getDefaultValidator(): callable
169169
throw new InvalidArgumentException(sprintf($errorMessage, $value));
170170
}
171171

172-
$multiselectChoices[] = (string) $result;
172+
$multiselectChoices[] = $result;
173173
}
174174

175175
if ($multiselect) {

0 commit comments

Comments
 (0)