This commit is contained in:
Taras Machyshyn
2021-12-09 12:18:26 +02:00
parent 7a90e30243
commit 28c4b8ea05

View File

@@ -207,7 +207,7 @@ class Helper
{
$databaseParams = DatabaseParams::create()
->withHost($params['host'] ?? null)
->withPort(isset($params['host']) ? (int) $params['host'] : null)
->withPort(isset($params['port']) ? (int) $params['port'] : null)
->withName($params['dbname'] ?? null)
->withUsername($params['user'] ?? null)
->withPassword($params['password'] ?? null)