laravel / prompts

Beautiful and user-friendly forms for your command-line PHP applications.
https://laravel.com/docs/prompts
MIT License
532 stars 94 forks source link

`multiselect` / `multisearch` helper functions are missing default hint #172

Closed ExeQue closed 1 month ago

ExeQue commented 1 month ago

Laravel Prompts Version

0.1.19

Laravel Version

10.48.8

PHP Version

8.2.8

Operating System & Version

WSL w/ Docker Linux 5.15.153

Terminal Application

Windows Terminal

Description

The func_get_args does not include parameters with default values when using the multiselect/multisearch helper function, which causes the $hint parameter to be the default value of `the constructors of the respective classes which is empty.

It only returns the parameters explicitly given in the function call.

Steps To Reproduce

  1. Prompt using the multiselect helper function.
  2. Note the missing default hint

image image

jessarcher commented 1 month ago

Thanks, @ExeQue!

I've created #174 to address this.