When using multiselect prompts with arrays matching the array_is_list requirement, the selected options are displayed differently as they are returned.
You can find a minimal example on a brand-new Laravel project here: https://github.com/irobin591/laravel-prompts-bug (see [app/Console/Commands/Bug.php](https://github.com/irobin591/laravel-prompts-bug/blob/main/app/Console/Commands/Bug.php))
Laravel Prompts Version
0.1.5
Laravel Version
10.19.0
PHP Version
8.2.8 (in docker image)
Operating System & Version
macOS 13.5 (Intel) + Docker 4.18.0 + Dockerimage mcr.microsoft.com/devcontainers/php:1-8.2-bullseye
Terminal Application
VSCode Terminal
Description
When using
multiselect
prompts with arrays matching thearray_is_list
requirement, the selected options are displayed differently as they are returned.Steps To Reproduce
dump($selectedPermissions);
┌ Select permissions ──────────────────────────────────────────┐ │ create │ │ read │ └──────────────────────────────────────────────────────────────┘
array:2 [ // app/Console/Commands/Bug.php:45 0 => "read" 1 => "write" ]