Skip to content

[FIX] #173 - PHP 8.1 deprecation warning #180

Merged
jasonbahl merged 1 commit intowp-graphql:developfrom
gregrickaby:patch-1
Oct 24, 2024
Merged

[FIX] #173 - PHP 8.1 deprecation warning #180
jasonbahl merged 1 commit intowp-graphql:developfrom
gregrickaby:patch-1

Conversation

@gregrickaby
Copy link
Copy Markdown
Contributor

@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
Copy Markdown

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
Copy Markdown

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

@RonHolt
Copy link
Copy Markdown

RonHolt commented Oct 1, 2024

Bumping this thread as I also just noticed this issue.

@jasonbahl jasonbahl merged commit cc599b2 into wp-graphql:develop Oct 24, 2024
@gregrickaby gregrickaby deleted the patch-1 branch October 25, 2024 02:55
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.

5 participants