Skip to content

Commit

Permalink
fix an issue where the postgres schema state proxy was called with wr…
Browse files Browse the repository at this point in the history
…ong parameters
mszulik committed Dec 12, 2024
1 parent cba5551 commit e487409
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Classes/AbstractPostgresSchemaStateProxy.php
Original file line number Diff line number Diff line change
@@ -11,9 +11,8 @@
*/
abstract class AbstractPostgresSchemaStateProxy extends PostgresSchemaState
{
public function __construct(Connection $connection, protected PostgresSchemaState $schemaState, protected Protector $protector)
public function __construct(protected PostgresSchemaState $schemaState, protected Protector $protector)
{
parent::__construct($connection);
}

/**
8 changes: 4 additions & 4 deletions src/Classes/PostgresSchemaStateProxy.php
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@ class PostgresSchemaStateProxy extends AbstractPostgresSchemaStateProxy
*/
public function dump(Connection $connection, $path)
{
$this->makeProcess($this->baseDumpCommand() . ' > ' . $path)
$this->schemaState->makeProcess($this->baseDumpCommand() . ' > ' . $path)
->mustRun(
$this->output,
array_merge($this->baseVariables($this->connection->getConfig()
$this->schemaState->output,
array_merge($this->baseVariables($this->schemaState->connection->getConfig()
), [
'LARAVEL_LOAD_PATH' => $path,
]));
@@ -32,7 +32,7 @@ protected function getBaseDumpArguments(): array
...array_keys(array_filter($this->getConditionalParameters())),
];
}

public function getConditionalParameters(): array
{
return [

0 comments on commit e487409

Please sign in to comment.