wp-graphql-jwt-authentication
wp-graphql-jwt-authentication copied to clipboard
[FIX] #173 - PHP 8.1 deprecation warning
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