Skip to content

Commit c9e4fa9

Browse files
authored
Merge pull request #471 from datashaman/attachments-error
Fix 'attachments' key exception on thread message modify
2 parents 5bfb908 + d7a346e commit c9e4fa9

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)