mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
parent
ec9ba46c5f
commit
556148510b
1 changed files with 4 additions and 0 deletions
|
@ -291,6 +291,10 @@ class ConsoleIO extends BaseIO
|
|||
|
||||
$result = $helper->ask($this->input, $this->getErrorOutput(), $question);
|
||||
|
||||
if (!is_array($result)) {
|
||||
return (string) array_search($result, $choices, true);
|
||||
}
|
||||
|
||||
$results = array();
|
||||
foreach ($choices as $index => $choice) {
|
||||
if (in_array($choice, $result, true)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue