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

Fix issue with default action continuing the commands #33

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

redthor
Copy link
Contributor

@redthor redthor commented Apr 27, 2018

The constructor on ConfirmationQuestion takes a boolean as a second parameter. The Migrate and Execute commands have been passing a string 'n'.

See https://github.com/symfony/console/blob/master/Question/ConfirmationQuestion.php#L28

The intent is to abort by default, but the string 'n' can be considered truthy.

This PR clears up the confusion. The default is 'n' if you press Enter during interactive prompt.

@redthor redthor requested a review from caciobanu April 27, 2018 15:10
@caciobanu caciobanu merged commit 790ad04 into doesntmattr:master Apr 27, 2018
@caciobanu
Copy link
Member

Great catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants