芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/framework/config/Choice.php
$choices * @param mixed $default * @param int $attempts * @param bool $multiple * @return mixed */ public function render($question, $choices, $default = null, $attempts = null, $multiple = false) { return $this->usingQuestionHelper( fn () => $this->output->askQuestion( $this->getChoiceQuestion($question, $choices, $default) ->setMaxAttempts($attempts) ->setMultiselect($multiple) ), ); } /** * Get a ChoiceQuestion instance that handles array keys like Prompts. * * @param string $question * @param array $choices * @param mixed $default * @return \Symfony\Component\Console\Question\ChoiceQuestion */ protected function getChoiceQuestion($question, $choices, $default) { return new class($question, $choices, $default) extends ChoiceQuestion { protected function isAssoc(array $array): bool { return ! array_is_list($array); } }; } }