Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlocati
Copy link
Contributor

@mlocati mlocati commented Mar 31, 2022

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.

@kylekatarnls
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants