php-html-parser
php-html-parser copied to clipboard
Fix for str_replace()
Error:
TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given
This looks like a good fix to me.
I also added it to PR https://github.com/paquettg/php-html-parser/pull/289, so you could close this if you wanted.