Jordi Boggiano 8 лет назад
Родитель
Сommit
f3dda67c09
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 0
      CHANGELOG.md
  2. 1 1
      src/Monolog/Formatter/LineFormatter.php

+ 5 - 0
CHANGELOG.md

@@ -1,3 +1,8 @@
+### 1.22.1 (2017-03-13)
+
+  * Fixed lots of minor issues in the new Slack integrations
+  * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces
+
 ### 1.22.0 (2016-11-26)
 ### 1.22.0 (2016-11-26)
 
 
   * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily
   * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily

+ 1 - 1
src/Monolog/Formatter/LineFormatter.php

@@ -159,7 +159,7 @@ class LineFormatter extends NormalizerFormatter
     {
     {
         if ($this->allowInlineLineBreaks) {
         if ($this->allowInlineLineBreaks) {
             if (0 === strpos($str, '{')) {
             if (0 === strpos($str, '{')) {
-                return str_replace(['\r', '\n'], ["\r", "\n"], $str);
+                return str_replace(array('\r', '\n'), array("\r", "\n"), $str);
             }
             }
 
 
             return $str;
             return $str;