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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user