Skip to content
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

Check if default value isset #34094

Closed
wants to merge 2 commits into from
Closed

Conversation

leevigraham
Copy link
Contributor

Q A
Branch? 4.3 for bug fixes
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #34093
License MIT
Doc PR n/a

This PR addresses the issue when a default value is not a valid choice. Currently this would throw a notice which outputs to the console.

This fix is a similar implementation to the QuestionHelper: https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Console/Helper/QuestionHelper.php#L63

Example console command and output can be found in the issue: #34093

@leevigraham leevigraham changed the base branch from 4.4 to 4.3 October 24, 2019 07:01
@leevigraham leevigraham changed the base branch from 4.3 to 4.4 October 24, 2019 07:02
@leevigraham
Copy link
Contributor Author

Resubmitted PR: #34114 based on 4.3 branch.

@leevigraham leevigraham deleted the patch-1 branch October 25, 2019 10:25
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.

[Console] SymfonyStyle throws notice for invalid default choice in choice() method.
2 participants