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] #173 - PHP 8.1 deprecation warning #180

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

Conversation

gregrickaby
Copy link

@gregrickaby gregrickaby commented Dec 15, 2023

Description

A quick ternary to check for Auth::get_auth_header() before trying to use the value.

Error:

 PHP Deprecated:  str_ireplace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/public/wp-content/plugins/wp-graphql-jwt-authentication/src/ManageTokens.php on line 349

Related Issue

Closes #173

@thanix-k
Copy link

thanix-k commented Mar 6, 2024

I am currently patching this up in my project.

Any idea when this fix will be released?

@rodrigo-arias
Copy link

@jasonbahl Do you think you can merge this fix? Thanks

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.

PHP 8.1 causes deprecated warnings.
3 participants