diff --git a/src/Symfony/Component/Console/Question/ChoiceQuestion.php b/src/Symfony/Component/Console/Question/ChoiceQuestion.php index a61b410d51..a36c739e56 100644 --- a/src/Symfony/Component/Console/Question/ChoiceQuestion.php +++ b/src/Symfony/Component/Console/Question/ChoiceQuestion.php @@ -162,7 +162,7 @@ class ChoiceQuestion extends Question throw new \InvalidArgumentException(sprintf($errorMessage, $value)); } - $multiselectChoices[] = $choices[(string) $result]; + $multiselectChoices[] = (string) $result; } if ($multiselect) {