Skip to content

Commit a76c5c9

Browse files
committed
Fix for Field in attachments
1 parent 0ab907d commit a76c5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SlackAttachment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function toArray() {
274274
($this->markdown['fields'] ? ['fields'] : []),
275275
($this->markdown['pretext'] ? ['pretext'] : [])
276276
)],
277-
(count($this->fields) ? $this->fields : [])
277+
(count($this->fields) ? ['fields' => $this->fields] : [])
278278
);
279279
}
280280

0 commit comments

Comments
 (0)