Skip to content

Commit 2363574

Browse files
author
Andrey Helldar
committed
Renamed parameters
1 parent 1a7ec93 commit 2363574

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Concerns/Connections.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ protected function setDatabaseConnections($app): void
3939
$this->setDatabaseConnection($app, $this->target_connection, $this->defaultTargetConnectionName());
4040
}
4141

42-
protected function setDatabaseConnection($app, string $name, string $connection): void
42+
protected function setDatabaseConnection($app, string $connection, string $default_connection): void
4343
{
44-
$configurator = $this->getConfigurator($connection);
44+
$configurator = $this->getConfigurator($default_connection);
4545

46-
$configurator->setDatabase($name);
46+
$configurator->setDatabase($connection);
4747

48-
$app->config->set('database.connections.' . $name, $configurator->toArray());
48+
$app->config->set('database.connections.' . $connection, $configurator->toArray());
4949
}
5050

5151
protected function getConfigurator(string $connection): BaseConfiguration

0 commit comments

Comments
 (0)