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

[5.8] Check presence of force flag in command signature #28742

Merged
merged 1 commit into from Jun 6, 2019

Conversation

Projects
None yet
2 participants
@nie7321
Copy link
Contributor

commented Jun 5, 2019

When using the ConfirmableTrait, you get an exception in production if you don't have force in the command signature:

Symfony\Component\Console\Exception\InvalidArgumentException: The "force" option does not exist.

This was a non-obvious error, and caught me by surprise during a deployment -- you'd only get it when your app was in production mode.

This PR makes force an optional feature when using ConfirmableTrait.

@taylorotwell taylorotwell merged commit 5714b21 into laravel:5.8 Jun 6, 2019

2 checks passed

continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.