mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 08:26:06 +03:00
set empty array when no message headers for message show response (#815)
This commit is contained in:
parent
c0d5f41719
commit
2395e5d232
@ -51,7 +51,7 @@ final class ShowResponse implements ApiResponse
|
|||||||
$model->bodyHtml = $data['body-html'] ?? null;
|
$model->bodyHtml = $data['body-html'] ?? null;
|
||||||
$model->strippedHtml = $data['stripped-html'] ?? null;
|
$model->strippedHtml = $data['stripped-html'] ?? null;
|
||||||
$model->messageUrl = $data['message-url'] ?? null;
|
$model->messageUrl = $data['message-url'] ?? null;
|
||||||
$model->messageHeaders = $data['message-headers'] ?? null;
|
$model->messageHeaders = $data['message-headers'] ?? [];
|
||||||
$model->recipient = $data['recipient'] ?? null;
|
$model->recipient = $data['recipient'] ?? null;
|
||||||
$model->bodyMime = $data['body-mime'] ?? null;
|
$model->bodyMime = $data['body-mime'] ?? null;
|
||||||
$model->attachments = $data['attachments'] ?? [];
|
$model->attachments = $data['attachments'] ?? [];
|
||||||
|
Loading…
Reference in New Issue
Block a user