Skip to content

Commit c8d453c

Browse files
[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 <[email protected]>
1 parent 59130d2 commit c8d453c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Console/Concerns/CallsCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function runCommand($command, array $arguments, OutputInterface $outpu
6666
protected function createInputFromArguments(array $arguments)
6767
{
6868
return tap(new ArrayInput(array_merge($this->context(), $arguments)), function ($input) {
69-
if ($input->hasParameterOption(['--no-interaction'], true)) {
69+
if ($input->getParameterOption('--no-interaction')) {
7070
$input->setInteractive(false);
7171
}
7272
});

0 commit comments

Comments
 (0)