Skip to content

Commit

Permalink
fix: remove unused args parameter from mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Jul 18, 2024
1 parent a4ad6ff commit c68d0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions Classes/Service/DatabaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c68d0a0

Please sign in to comment.