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

Issue in serlaization at AccessTokenInterface when app.store.authorize is triggered #167

Open
a7medKhalid opened this issue Feb 20, 2023 · 0 comments

Comments

@a7medKhalid
Copy link

Symfony\Component\ErrorHandler\Error\FatalError: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of League\OAuth2\Client\Token\AccessTokenInterface::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/afaq/Documents/salla/dsjkgh/vendor/league/oauth2-client/src/Token/AccessTokenInterface.php:71
telegram-cloud-photo-size-4-6025868631759502224-x

After adding #[\ReturnTypeWillChange] attribute before this function and now the issue error disappears but another issue occurs
League\OAuth2\Client\Provider\Exception\IdentityProviderException: Please provide a valid authorization token in file /Users/afaq/Documents/salla/dsjkgh/vendor/salla/ouath2-merchant/src/Provider/Salla.php on line 88

and I think the cause of it is the serialization type

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

No branches or pull requests

1 participant