Error in php 8.1
mikeborisov78 opened this issue · 1 comments
mikeborisov78 commented
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);
stof commented
The phpdoc on the method declares the contract as @param string $data
. So you should only pass a string.
Btw, this won't trigger an error on PHP 8.1 but only a deprecation warning.