Skip to content

Commit

Permalink
[6.x] Check no-interaction flag exists and is true for Artisan comman…
Browse files Browse the repository at this point in the history
…ds (#33950)

* Check no-interaction flag exists and is true for Artisan commands

* Removed boolean comparison against true

Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
  • Loading branch information
liamjcooper and GrahamCampbell committed Aug 20, 2020
1 parent 59130d2 commit c8d453c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Concerns/CallsCommands.php
Expand Up @@ -66,7 +66,7 @@ protected function runCommand($command, array $arguments, OutputInterface $outpu
protected function createInputFromArguments(array $arguments)
{
return tap(new ArrayInput(array_merge($this->context(), $arguments)), function ($input) {
if ($input->hasParameterOption(['--no-interaction'], true)) {
if ($input->getParameterOption('--no-interaction')) {
$input->setInteractive(false);
}
});
Expand Down

0 comments on commit c8d453c

Please sign in to comment.