Skip to content

Fixing PHP warning in HTTP Router#124

Closed
stromhalm wants to merge 2 commits into
Automattic:mainfrom
stromhalm:main
Closed

Fixing PHP warning in HTTP Router#124
stromhalm wants to merge 2 commits into
Automattic:mainfrom
stromhalm:main

Conversation

@stromhalm

Copy link
Copy Markdown

Hey there,
in my dev environment, the following PHP warning is being logged:

wp-content/plugins/openid-connect-server/src/Http/Router.php:66
str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated

This PR would fix the warning.

@ashfame

ashfame commented Dec 9, 2025

Copy link
Copy Markdown
Member

Hey @stromhalm Thanks for surfacing this!
I didn't have permission to edit your PR, so I had to create a new PR, in which I fixed the root cause as opposed to the symptom.

@ashfame ashfame closed this Dec 9, 2025
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