From c68d0a0ea0b6ba201b501e56d759d4197f8454a6 Mon Sep 17 00:00:00 2001 From: David Mellen Date: Thu, 18 Jul 2024 12:11:20 +0200 Subject: [PATCH] fix: remove unused args parameter from mysql --- Classes/Command/ImportCommand.php | 2 +- Classes/Service/DatabaseService.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Command/ImportCommand.php b/Classes/Command/ImportCommand.php index 46a29e3..3ff9df0 100644 --- a/Classes/Command/ImportCommand.php +++ b/Classes/Command/ImportCommand.php @@ -81,7 +81,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $stream = fopen($path, 'r'); - $process = $this->databaseService->mysql(null, $stream); + $process = $this->databaseService->mysql($stream); $exitCode = $process->run(); diff --git a/Classes/Service/DatabaseService.php b/Classes/Service/DatabaseService.php index 204a40d..61362bc 100644 --- a/Classes/Service/DatabaseService.php +++ b/Classes/Service/DatabaseService.php @@ -23,9 +23,9 @@ public function __construct() $this->connection = $connectionPool->getConnectionByName(self::CONNECTION_NAME); } - public function mysql(?array $args = [], mixed $input = null): Process + public function mysql(mixed $input = null): Process { - $command = ['mysql', ...$this->buildConnectionArguments(), ...$args]; + $command = ['mysql', ...$this->buildConnectionArguments()]; return new Process($command, null, null, $input); }