Skip to content

Commit 500489f

Browse files
authored
Update DbDumperFactory.php (#1842)
1 parent f8de07c commit 500489f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tasks/Backup/DbDumperFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public static function createFromConnection(string $dbConnectionName): DbDumper
4747

4848
if ($dbDumper instanceof MySql) {
4949
$dbDumper
50+
->setSkipSsl($dbConfig['dump']['skip_ssl'] ?? false)
5051
->setDefaultCharacterSet($dbConfig['charset'] ?? '')
5152
->setGtidPurged($dbConfig['dump']['mysql_gtid_purged'] ?? 'AUTO');
5253
}
@@ -124,7 +125,7 @@ protected static function callMethodOnDumper(DbDumper $dbDumper, string $methodN
124125

125126
protected static function determineValidMethodName(DbDumper $dbDumper, string $methodName): string
126127
{
127-
return collect([$methodName, 'set'.ucfirst($methodName)])
128-
->first(fn (string $methodName) => method_exists($dbDumper, $methodName), '');
128+
return collect([$methodName, 'set' . ucfirst($methodName)])
129+
->first(fn(string $methodName) => method_exists($dbDumper, $methodName), '');
129130
}
130131
}

0 commit comments

Comments
 (0)