mixed
askAndValidate(OutputInterface $output, string|array $question, callable $validator, int|false $attempts = false, string $default = null, array $autocomplete = null)
Asks for a value and validates the response. The validator receives the data to validate. It must return the validated data when the data is valid and throw an exception otherwise.
Parameters OutputInterface $output An Output instance string|array $question The question to ask callable $validator A PHP callba