Skip to content

Commit

Permalink
move rows param to last position
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Mar 31, 2024
1 parent d5699cf commit 4d5c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function text(string $label, string $placeholder = '', string $default = '', boo
/**
* Prompt the user for multiline text input.
*/
function textarea(string $label, int $rows = 5, string $placeholder = '', string $default = '', bool|string $required = false, ?Closure $validate = null, string $hint = ''): string
function textarea(string $label, string $placeholder = '', string $default = '', bool|string $required = false, ?Closure $validate = null, string $hint = '', int $rows = 5): string
{
return (new TextareaPrompt($label, $rows, $placeholder, $default, $required, $validate, $hint))->prompt();
}
Expand Down

0 comments on commit 4d5c182

Please sign in to comment.