Move away from deprecated utf_encode() on PHP 8.2+

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/43669/head
Git'Fellow 3 months ago committed by backportbot[bot]
parent 5a5a8961e8
commit ca8f6fd94f

@ -106,7 +106,7 @@ abstract class LogDetails {
if (is_string($value)) {
$testEncode = json_encode($value, JSON_UNESCAPED_SLASHES);
if ($testEncode === false) {
$entry[$key] = utf8_encode($value);
$entry[$key] = mb_convert_encoding($value, 'UTF-8', mb_detect_encoding($value));
}
}
}

Loading…
Cancel
Save