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 deprecation warning from passing null to str_replace #30

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

mkopinsky
Copy link
Contributor

The second argument to str_replace should be empty string rather than null. Otherwise you get this error:

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated

The second argument to `str_replace` should be empty string rather than null. Otherwise you get this error:
```
Deprecated: str_replace(): Passing null to parameter SpiriitLabs#2 ($replace) of type array|string is deprecated
```
@gilles-g gilles-g merged commit 86c3dd5 into SpiriitLabs:master Aug 23, 2024
4 checks passed
@gilles-g
Copy link
Contributor

Thanks @mkopinsky

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.

2 participants