diff --git a/src/Responses/Threads/Messages/ThreadMessageResponse.php b/src/Responses/Threads/Messages/ThreadMessageResponse.php index 8740aadd..9dc6c4d9 100644 --- a/src/Responses/Threads/Messages/ThreadMessageResponse.php +++ b/src/Responses/Threads/Messages/ThreadMessageResponse.php @@ -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(