1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Fix normalization of objects in SlackRecord, closes #1127

This commit is contained in:
Jordi Boggiano
2018-06-07 18:23:28 +02:00
parent 68e39bd84f
commit 07681ea4ba

6
src/Monolog/Handler/Slack/SlackRecord.php Normal file → Executable file
View File

@@ -229,8 +229,8 @@ class SlackRecord
/** /**
* Generates attachment field * Generates attachment field
* *
* @param string $title * @param string $title
* @param string|array $value\ * @param string|array $value
* *
* @return array * @return array
*/ */
@@ -257,7 +257,7 @@ class SlackRecord
private function generateAttachmentFields(array $data) private function generateAttachmentFields(array $data)
{ {
$fields = array(); $fields = array();
foreach ($data as $key => $value) { foreach ($this->normalizerFormatter->format($data) as $key => $value) {
$fields[] = $this->generateAttachmentField($key, $value); $fields[] = $this->generateAttachmentField($key, $value);
} }