From 55e9d162208bed39696990561a87859456bde1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Fri, 10 Aug 2018 15:25:20 +0800 Subject: [PATCH] Fix PHP 5.6 --- src/Gateways/SubmailGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/SubmailGateway.php b/src/Gateways/SubmailGateway.php index d8c2bc9..41059e6 100644 --- a/src/Gateways/SubmailGateway.php +++ b/src/Gateways/SubmailGateway.php @@ -48,7 +48,7 @@ class SubmailGateway extends Gateway $result = $this->post($endpoint, [ 'appid' => $config->get('app_id'), 'signature' => $config->get('app_key'), - 'project' => $data['project'] ?? $config->get('project'), + 'project' => !empty($data['project']) ? $data['project'] : $config->get('project'), 'to' => $to->getUniversalNumber(), 'vars' => json_encode($data, JSON_FORCE_OBJECT), ]); -- GitLab