html-object icon indicating copy to clipboard operation
html-object copied to clipboard

Fix "explode(): Passing null to parameter #2 ($string) of type string is deprecated"

Open mlocati opened this issue 2 years ago • 1 comments

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.

mlocati avatar Mar 31 '22 15:03 mlocati

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

kylekatarnls avatar Feb 26 '23 11:02 kylekatarnls