set empty array when no message headers for message show response (#815)

This commit is contained in:
Carlos Dominguez 2022-02-07 22:20:21 +01:00 committed by GitHub
parent c0d5f41719
commit 2395e5d232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ final class ShowResponse implements ApiResponse
$model->bodyHtml = $data['body-html'] ?? null;
$model->strippedHtml = $data['stripped-html'] ?? null;
$model->messageUrl = $data['message-url'] ?? null;
$model->messageHeaders = $data['message-headers'] ?? null;
$model->messageHeaders = $data['message-headers'] ?? [];
$model->recipient = $data['recipient'] ?? null;
$model->bodyMime = $data['body-mime'] ?? null;
$model->attachments = $data['attachments'] ?? [];