Skip to content

Commit 0136609

Browse files
CloCkWeRXfreekmurze
authored andcommitted
Ignore invalid ports
1 parent 9e0baa0 commit 0136609

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Tasks/Backup/DbDumperFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public static function createFromConnection(string $dbConnectionName): DbDumper
5858
}
5959

6060
if (isset($dbConfig['port'])) {
61-
$dbDumper = $dbDumper->setPort($dbConfig['port']);
61+
if (is_integer($dbConfig['port'])) {
62+
$dbDumper = $dbDumper->setPort($dbConfig['port']);
63+
}
6264
}
6365

6466
if (isset($dbConfig['dump'])) {

0 commit comments

Comments
 (0)