Jordi Boggiano 6 лет назад
Родитель
Сommit
9776fa1d54
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/Monolog/Handler/Slack/SlackRecord.php

+ 2 - 2
src/Monolog/Handler/Slack/SlackRecord.php

@@ -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;