Skip to content

Commit

Permalink
fix PHP8.2 E_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
divinity76 authored Feb 24, 2023
1 parent c212223 commit 5b5d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FastXml/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function endTag($parser, $name)
*/
public function convertEntities($content)
{
$table = array_map('utf8_encode', array_flip(
$table = array_map(function($str){/*return utf8_encode($str);*/return mb_convert_encoding($str,'UTF-8','ISO-8859-1');}, array_flip(
array_diff(
get_html_translation_table(HTML_ENTITIES),
get_html_translation_table(HTML_SPECIALCHARS)
Expand Down

0 comments on commit 5b5d705

Please sign in to comment.