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

PHP 8.1 returns an error about str_replace() use in misc.php #329

Open
Julianoe opened this issue Sep 2, 2022 · 1 comment
Open

PHP 8.1 returns an error about str_replace() use in misc.php #329

Julianoe opened this issue Sep 2, 2022 · 1 comment

Comments

@Julianoe
Copy link

Julianoe commented Sep 2, 2022

Got error 'PHP message: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /srv/sites/mysite/www/_site/hashover-next/backend/classes/misc.php on line 94

@Julianoe
Copy link
Author

Julianoe commented Sep 2, 2022

Adding a check (with if or ternary operator maybe?) to verify that $string is something would solve it

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

No branches or pull requests

1 participant