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

Merge pull request #1023 from dis1/fix-for-slack-record-encoding

fix-for-slack-record-encoding
This commit is contained in:
Jordi Boggiano
2018-06-08 20:19:46 +02:00
committed by GitHub

View File

@@ -211,8 +211,8 @@ class SlackRecord
$hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric')); $hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric'));
return $hasSecondDimension || $hasNonNumericKeys return $hasSecondDimension || $hasNonNumericKeys
? json_encode($normalized, $prettyPrintFlag) ? json_encode($normalized, $prettyPrintFlag|JSON_UNESCAPED_UNICODE)
: json_encode($normalized); : json_encode($normalized, JSON_UNESCAPED_UNICODE);
} }
/** /**