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

str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated #3

Open
markconroy opened this issue Jan 24, 2024 · 1 comment

Comments

@markconroy
Copy link
Member

We're getting the error because of line 35 in the .module file. Let's check for !null before we set this.

Suggest changing

$prev_destination = str_replace($host, "", $request);

to

if ($request !== null) {
    $prev_destination = str_replace($host, "", $request);
  }
@Polynya
Copy link
Collaborator

Polynya commented Apr 12, 2024

This is fixed by #4

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

2 participants