1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

fix-for-slack-record-encoding

This commit is contained in:
dis1
2017-07-13 11:50:43 +03:00
parent 7b99283627
commit a4973fade6

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);
} }
/** /**