From 1eb00cf401a77cf6eab834201213a75523b8a548 Mon Sep 17 00:00:00 2001 From: ProklUng Date: Mon, 16 Aug 2021 12:30:18 +0300 Subject: [PATCH] fixes --- src/Commands/DbDrop.php | 2 +- src/Commands/DbExport.php | 2 +- src/Commands/DbImport.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/DbDrop.php b/src/Commands/DbDrop.php index 900dbab..c9c722e 100644 --- a/src/Commands/DbDrop.php +++ b/src/Commands/DbDrop.php @@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $dbHost = $_ENV['DB_HOST']; $dbName = $_ENV['DB_NAME']; - $dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN']; + $dbLogin = $_ENV['DB_USER'] ?? (string)$_ENV['DB_LOGIN']; $dbPassword = $_ENV['DB_PASSWORD']; if (!$dbHost || !$dbName || !$dbLogin) { diff --git a/src/Commands/DbExport.php b/src/Commands/DbExport.php index 05888f5..51ee626 100644 --- a/src/Commands/DbExport.php +++ b/src/Commands/DbExport.php @@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $dbHost = $_ENV['DB_HOST']; $dbName = $_ENV['DB_NAME']; - $dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN']; + $dbLogin = $_ENV['DB_USER'] ?? (string)$_ENV['DB_LOGIN']; $dbPassword = $_ENV['DB_PASSWORD']; if (!$dbHost || !$dbName || !$dbLogin) { diff --git a/src/Commands/DbImport.php b/src/Commands/DbImport.php index 1995fdd..c844b04 100644 --- a/src/Commands/DbImport.php +++ b/src/Commands/DbImport.php @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $dbHost = $_ENV['DB_HOST']; $dbName = $_ENV['DB_NAME']; - $dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN']; + $dbLogin = $_ENV['DB_USER'] ?? (string)$_ENV['DB_LOGIN']; $dbPassword = $_ENV['DB_PASSWORD']; if (!$dbHost || !$dbName || !$dbLogin) {