-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11.x] Fix
expectsChoice
assertion with optional multiselect
prom…
…pts. (#51078) * Replace `PromptOption` with customized `ChoiceQuestion` * Fix expectsChoice assertion for optional `multiselect` * Fix prompt fallback test * Update Choice.php --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
6a8b505
commit f57756a
Showing
5 changed files
with
103 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PendingCommand::expectsChoice
defines$answer
as allowingarray|string
, but this line will throw aTypeError
if you pass it a string now sincearray_map
requires the second param to be an array.