-
Notifications
You must be signed in to change notification settings - Fork 92
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
PSR CacheItemItemface is incompatible with WpObjectCacheItem Error #880
Comments
Hi @u382514 👋 Thanks for raising this, I'll check into it and get back to you |
Hi @u382514, as you noticed, v3 of the PSR-6 interface implemented a breaking change requiring return value types, but the plugin was designed to target v1 || v2. I'll look into updating this soon if it can be done in a way that doesn't break v1 and v2 compatibility. Otherwise, we will need to restrict version support to those previous versions. |
Hey @u382514 👋 Thanks for your patience while we investigated this. I can confirm a fix has been committed and will ship as part of our next release. |
Checklist
Description
Receiving the following error when trying to login and redirecting back:
The function in the PSR CacheItemInterface.php file is showing static like this:
while the function in the WpObjectCacheItem.php file under Auth0 does not:
If I add the ':static' to the Auth0 function, it works.
Reproduction
composer require symfony/http-client nyholm/psr7 auth0/wordpress:^5.0
on the rootAdditional context
The composer require after running the composer command:
wp-auth0 version
5.1
WordPress version
Latest Bedrock
PHP version
8.2.8
The text was updated successfully, but these errors were encountered: