Skip to content

[Console] SymfonyQuestionHelper with multi-select choice failes with multiple defaults #19099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

sstok
Copy link
Contributor

@sstok sstok commented Jun 18, 2016

Q A
Bug Fix? yes
New Feature? no
BC Breaks? no
Deprecations? no
Tests Pass? yes
Fixed Tickets
License MIT
Doc PR

When you use the SymfonyStyle with a multi-choice question and multiple defaults.
You get an notice because the key is used as-is 0,1 instead of splitting the value.

This pull-request changes the SymfonyQuestionHelper to checks if the Choice is a multi-choice
and displays the selected values correctly [blue, yellow].

Note: Tests are missing, but both the SymfonyStyle and SymfonyQuestionHelper classes
have almost no tests. Making it really hard 😇 hopefully #19097 will make this easier 👍

zdenekdrahos and others added 2 commits June 17, 2016 16:58
… and CHANGELOG (zdenekdrahos)

This PR was squashed before being merged into the 2.8 branch (closes symfony#19083).

Discussion
----------

Mention generating absolute urls in UPGRADE files and CHANGELOG

| Q             | A
| ------------- | ---
| Branch?       | 2.8+
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony#19058
| License       | MIT
| Doc PR        | -

Commits
-------

5f506d9 Mention generating absolute urls in UPGRADE files and CHANGELOG
@sstok
Copy link
Contributor Author

sstok commented Jun 18, 2016

Crap, wrong branch 💀 and forgot to commit the actual changes...

@sstok sstok closed this Jun 18, 2016
@sstok sstok deleted the bug-console-multi-choice-symfonyStyle branch June 18, 2016 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants