mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Fix type error, fixes #1382
This commit is contained in:
@@ -159,7 +159,7 @@ class SlackRecord
|
|||||||
|
|
||||||
if ($this->useShortAttachment) {
|
if ($this->useShortAttachment) {
|
||||||
$attachment['fields'][] = $this->generateAttachmentField(
|
$attachment['fields'][] = $this->generateAttachmentField(
|
||||||
$key,
|
(string) $key,
|
||||||
$record[$key]
|
$record[$key]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -324,7 +324,7 @@ class SlackRecord
|
|||||||
{
|
{
|
||||||
$fields = array();
|
$fields = array();
|
||||||
foreach ($this->normalizerFormatter->format($data) as $key => $value) {
|
foreach ($this->normalizerFormatter->format($data) as $key => $value) {
|
||||||
$fields[] = $this->generateAttachmentField($key, $value);
|
$fields[] = $this->generateAttachmentField((string) $key, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
|
Reference in New Issue
Block a user