Skip to content

Commit d7a346e

Browse files
committed
Fix attachments error
1 parent 061a738 commit d7a346e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Responses/Threads/Messages/ThreadMessageResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function from(array $attributes, MetaInformation $meta): self
6161

6262
$attachments = array_map(
6363
fn (array $attachment): ThreadMessageResponseAttachment => ThreadMessageResponseAttachment::from($attachment),
64-
$attributes['attachments']
64+
$attributes['attachments'] ?? []
6565
);
6666

6767
return new self(

0 commit comments

Comments
 (0)