Open mikeborisov78 opened 1 year ago
src/HTML5/Parser/UTF8Utils.php
$data = mb_convert_encoding($data, 'UTF-8', $encoding);
error if $data is null in PHP 8.1 help this:
$data = mb_convert_encoding($data.'', 'UTF-8', $encoding);
The phpdoc on the method declares the contract as @param string $data. So you should only pass a string.
@param string $data
Btw, this won't trigger an error on PHP 8.1 but only a deprecation warning.
src/HTML5/Parser/UTF8Utils.php
$data = mb_convert_encoding($data, 'UTF-8', $encoding);
error if $data is null in PHP 8.1 help this:
$data = mb_convert_encoding($data.'', 'UTF-8', $encoding);