diff --git a/src/helpers.php b/src/helpers.php index d85010c..65545e0 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -19,7 +19,7 @@ function text(string $label, string $placeholder = '', string $default = '', boo /** * Prompt the user for multiline text input. */ - function textarea(string $label, string $placeholder = '', string $default = '', bool|string $required = false, ?Closure $validate = null, string $hint = '', int $rows = 5, ?Closure $transform = null): string + function textarea(string $label, string $placeholder = '', string $default = '', bool|string $required = false, mixed $validate = null, string $hint = '', int $rows = 5, ?Closure $transform = null): string { return (new TextareaPrompt(...func_get_args()))->prompt(); }