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:
4
src/Monolog/Handler/Slack/SlackRecord.php
Normal file → Executable file
4
src/Monolog/Handler/Slack/SlackRecord.php
Normal file → Executable file
@@ -230,7 +230,7 @@ class SlackRecord
|
||||
* Generates attachment field
|
||||
*
|
||||
* @param string $title
|
||||
* @param string|array $value\
|
||||
* @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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user