From c8d453c52527ff963c09a902759138fe888bb45a Mon Sep 17 00:00:00 2001 From: Liam Cooper Date: Thu, 20 Aug 2020 14:35:20 +0100 Subject: [PATCH] [6.x] Check no-interaction flag exists and is true for Artisan commands (#33950) * Check no-interaction flag exists and is true for Artisan commands * Removed boolean comparison against true Co-authored-by: Graham Campbell --- src/Illuminate/Console/Concerns/CallsCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Concerns/CallsCommands.php b/src/Illuminate/Console/Concerns/CallsCommands.php index 11da1d1fb303..e060c5562606 100644 --- a/src/Illuminate/Console/Concerns/CallsCommands.php +++ b/src/Illuminate/Console/Concerns/CallsCommands.php @@ -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); } });