We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061a738 commit d7a346eCopy full SHA for d7a346e
src/Responses/Threads/Messages/ThreadMessageResponse.php
@@ -61,7 +61,7 @@ public static function from(array $attributes, MetaInformation $meta): self
61
62
$attachments = array_map(
63
fn (array $attachment): ThreadMessageResponseAttachment => ThreadMessageResponseAttachment::from($attachment),
64
- $attributes['attachments']
+ $attributes['attachments'] ?? []
65
);
66
67
return new self(
0 commit comments