public function ask(InputInterface
$input, OutputInterface
$output, Question
$question): mixed
{ if ($output instanceof ConsoleOutputInterface
) { $output =
$output->
getErrorOutput();
} if (!
$input->
isInteractive()) { return $this->
getDefaultAnswer($question);
} if ($input instanceof StreamableInputInterface &&
$stream =
$input->
getStream()) { $this->inputStream =
$stream;
} try { if (!
$question->
getValidator()) { return $this->
doAsk($output,
$question);
}