1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 20:57:36 +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
*
* @param string $title
* @param string|array $value\
* @param string $title
* @param string|array $value
*
* @return array
*/
@@ -257,7 +257,7 @@ class SlackRecord
private function generateAttachmentFields(array $data)
{
$fields = array();
foreach ($data as $key => $value) {
foreach ($this->normalizerFormatter->format($data) as $key => $value) {
$fields[] = $this->generateAttachmentField($key, $value);
}