Skip to content

Commit

Permalink
Merge pull request #28742 from nie7321/confirmable-force
Browse files Browse the repository at this point in the history
[5.8] Check presence of force flag in command signature
  • Loading branch information
taylorotwell authored Jun 6, 2019
2 parents f76d0e2 + cc334d9 commit 5714b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/ConfirmableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function confirmToProceed($warning = 'Application In Production!', $callb
$shouldConfirm = $callback instanceof Closure ? call_user_func($callback) : $callback;

if ($shouldConfirm) {
if ($this->option('force')) {
if ($this->hasOption('force') && $this->option('force')) {
return true;
}

Expand Down

0 comments on commit 5714b21

Please sign in to comment.