Skip to content

Commit

Permalink
Fix attachments error
Browse files Browse the repository at this point in the history
  • Loading branch information
datashaman committed Aug 25, 2024
1 parent 061a738 commit d7a346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Responses/Threads/Messages/ThreadMessageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function from(array $attributes, MetaInformation $meta): self

$attachments = array_map(
fn (array $attachment): ThreadMessageResponseAttachment => ThreadMessageResponseAttachment::from($attachment),
$attributes['attachments']
$attributes['attachments'] ?? []
);

return new self(
Expand Down

0 comments on commit d7a346e

Please sign in to comment.