Move away from deprecated utf_encode() on PHP 8.2+

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/43637/head
Git'Fellow 3 months ago committed by GitHub
parent c7ef27d066
commit d753d04760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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