Skip to content

Commit 445c7c1

Browse files
authored
Merge pull request #661 from gabrielrbarbosa/fix/php8.2-deprecated
PHP 8.2 - Replace deprecated utf8_encode function to mb string
2 parents 35f0f4c + ed33ebc commit 445c7c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ protected function cleanupObj($obj, $isMetaData)
848848
}
849849

850850
if (is_string($obj)) {
851-
return (function_exists('mb_detect_encoding') && !mb_detect_encoding($obj, 'UTF-8', true)) ? utf8_encode($obj) : $obj;
851+
return (function_exists('mb_detect_encoding') && !mb_detect_encoding($obj, 'UTF-8', true)) ? mb_convert_encoding($obj, 'UTF-8', 'ISO-8859-1') : $obj;
852852
}
853853

854854
if (is_object($obj)) {

0 commit comments

Comments
 (0)