diff --git a/Service/TpayAliasService.php b/Service/TpayAliasService.php index d6d2adb..01d47d2 100644 --- a/Service/TpayAliasService.php +++ b/Service/TpayAliasService.php @@ -39,7 +39,7 @@ public function getCustomerAlias(int $customerId) ->from($tableName) ->where('cli_id = ?', $customerId); - return $connection->fetchRow($select)['alias']; + return $connection->fetchRow($select)['alias'] ?? null; } public function saveCustomerAlias(int $customerId, string $alias): void