html-object
html-object copied to clipboard
Fix "explode(): Passing null to parameter #2 ($string) of type string is deprecated"
Since PHP 8.1, passing null
as the second parameter of explode()
raises this deprecation error:
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated
Let's fix it.
It sounds like this repo is possibly no longer maintained so I forked it. https://github.com/kylekatarnls/html-object
I switched to GitHub Actions up to PHP 8.3 and merged your compatibility fix.
I would be happy to review/merge other fixes and grant access to the repo to those who might want to contribute on a regular basis.
It can be installed with:
composer remove anahkiasen/html-object
composer require kylekatarnls/html-object