if ($input instanceof StreamableInputInterface &&
$stream =
$input->
getStream()) { $this->inputStream =
$stream;
} try { if (!
$question->
getValidator()) { return $this->
doAsk($output,
$question);
} $interviewer =
fn () =>
$this->
doAsk($output,
$question);
return $this->
validateAttempts($interviewer,
$output,
$question);
} catch (MissingInputException
$exception) { $input->
setInteractive(false
);
if (null ===
$fallbackOutput =
$this->
getDefaultAnswer($question)) { throw $exception;
} return $fallbackOutput;
} }