parent
ec9ba46c5f
commit
556148510b
|
@ -291,6 +291,10 @@ class ConsoleIO extends BaseIO
|
||||||
|
|
||||||
$result = $helper->ask($this->input, $this->getErrorOutput(), $question);
|
$result = $helper->ask($this->input, $this->getErrorOutput(), $question);
|
||||||
|
|
||||||
|
if (!is_array($result)) {
|
||||||
|
return (string) array_search($result, $choices, true);
|
||||||
|
}
|
||||||
|
|
||||||
$results = array();
|
$results = array();
|
||||||
foreach ($choices as $index => $choice) {
|
foreach ($choices as $index => $choice) {
|
||||||
if (in_array($choice, $result, true)) {
|
if (in_array($choice, $result, true)) {
|
||||||
|
|
Loading…
Reference in New Issue