Skip to content

Commit

Permalink
Fix PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Aug 10, 2018
1 parent dbce2d0 commit 55e9d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/SubmailGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config
$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),
]);
Expand Down

0 comments on commit 55e9d16

Please sign in to comment.