Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Fix SymfonyQuestionHelper::askQuestion() with choice value as default#28401

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:2.8fromchalasr:sfstyle-choice-val
Sep 8, 2018

Conversation

@chalasr
Copy link
Member

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#26885
LicenseMIT
Doc PRn/a

There is an inconsistency betweenSymfonyStyle::askQuestion(new ChoiceQuestion(...)) andSymfonyStyle::choice(...), the former does not support to have a choice value as default instead of a choice key while the latter handles both.
This is causing anundefined index notice breaking interactive command testing, fixed here.

Gemorroj reacted with hooray emoji
@chalasrchalasr added this to the2.8 milestoneSep 8, 2018
Gemorroj added a commit to Gemorroj/console-phar-example that referenced this pull requestSep 8, 2018
@chalasrchalasr changed the title[Console] Fix SymfonyQuestionHelper::askQuestion() with choice value …[Console] Fix SymfonyQuestionHelper::askQuestion() with choice value as defaultSep 8, 2018
@chalasrchalasr merged commitc51dda0 intosymfony:2.8Sep 8, 2018
chalasr pushed a commit that referenced this pull requestSep 8, 2018
…oice value as default (chalasr)This PR was merged into the 2.8 branch.Discussion----------[Console] Fix SymfonyQuestionHelper::askQuestion() with choice value as default| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#26885| License       | MIT| Doc PR        | n/aThere is an inconsistency between `SymfonyStyle::askQuestion(new ChoiceQuestion(...))` and `SymfonyStyle::choice(...)`, the former does not support to have a choice value as default instead of a choice key while the latter handles both.This is causing an `undefined index` notice breaking interactive command testing, fixed here.Commits-------c51dda0 [Console] Fix SymfonyQuestionHelper::askQuestion() with choice value as default
@chalasrchalasr deleted the sfstyle-choice-val branchSeptember 8, 2018 18:52
This was referencedSep 30, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.8

Development

Successfully merging this pull request may close these issues.

3 participants

@chalasr@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp