-
Notifications
You must be signed in to change notification settings - Fork 755
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
Update from 2.3.0 to 2.4.0 fails #752
Comments
Hotfix in composer.json "conflict": {
+ "league/oauth2-client": "2.4.0"
}, |
Gah! I didn’t think that would break BC. I was wrong. I’ll get a fix out within 24 hours. Thanks! |
Thanks for your prompt action on resolving this. I have the exact same issue with pviojo/oauth2-keycloak |
I am trying to reproduce this issue so I can write a test that shows this fatal error. So far, I have this: namespace League\OAuth2\Client\Test\Provider\Fake;
use League\OAuth2\Client\Token\AccessToken;
class ProviderWithAccessTokenHints extends AccessToken
{
public function getResourceOwnerDetailsUrl(AccessToken $token)
{
return 'https://api.example.com/owner/' . $token->getResourceOwnerId();
}
} But I'm able to run the test without any problems, and I see no fatal errors. I'm running the test with PHP 7.2.11. What version of PHP are you using, and at what point do you see the error? Is it during the Thanks! |
Nevermind. I am an idiot. I was extending the wrong class. 🤦♂️ |
Please check release 2.4.1 and confirm that it fixes this issue. Thanks! |
I confirm that it's fixed it for me. Thanks again |
Confirmed! Thanks! |
@ramsey since it breaks compatibility, a new major release is "required" to be able to use the |
@holtkamp I missed that comment from a year ago. So, version |
@ramsey ooh, no worries, the comment was from today when I was navigating some code and saw a |
Context: Symfony project with dependency
"league/oauth2-google": "^2.2"
, which in turn depends on oauth2-client.So far, I had oauth2-client installed in version 2.3.0, but upon
composer update
I get the following error message, after the upgrade to 2.4.0:The text was updated successfully, but these errors were encountered: