This PR improves the changes made in #73 so that the "required" validation message can be customized for select and search prompts when running non-interactively.
These two prompts are inherently required (unless a default is provided to the select prompt), so I've prevented setting it to false to avoid a more confusing error message. When PHP 8.1 is no longer supported, we can specify true|string directly on the functions.
This PR improves the changes made in #73 so that the "required" validation message can be customized for
select
andsearch
prompts when running non-interactively.These two prompts are inherently required (unless a default is provided to the
select
prompt), so I've prevented setting it tofalse
to avoid a more confusing error message. When PHP 8.1 is no longer supported, we can specifytrue|string
directly on the functions.