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:
6
src/Monolog/Handler/Slack/SlackRecord.php
Normal file → Executable file
6
src/Monolog/Handler/Slack/SlackRecord.php
Normal file → Executable 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user