1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Fix type error, fixes #1382

This commit is contained in:
Jordi Boggiano
2019-11-12 21:52:37 +01:00
parent 0b9ee7e636
commit 9776fa1d54

View File

@@ -159,7 +159,7 @@ class SlackRecord
if ($this->useShortAttachment) {
$attachment['fields'][] = $this->generateAttachmentField(
$key,
(string) $key,
$record[$key]
);
} else {
@@ -324,7 +324,7 @@ class SlackRecord
{
$fields = array();
foreach ($this->normalizerFormatter->format($data) as $key => $value) {
$fields[] = $this->generateAttachmentField($key, $value);
$fields[] = $this->generateAttachmentField((string) $key, $value);
}
return $fields;