laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.
https://laravel.com/docs/socialite
MIT License
5.58k stars 940 forks source link

SocialiteProviders\Apple\Provider::refreshToken(string $refreshToken) compatibility problem #678

Closed fabioferreira3 closed 11 months ago

fabioferreira3 commented 11 months ago

Socialite Version

5.11.0

Laravel Version

10.35.0

PHP Version

8.2.11

Database Driver & Version

No response

Description

After upgrading package to v5.11.0 this error shows up when using composer dump-autoload:

Whoops\Exception\ErrorException

Declaration of SocialiteProviders\Apple\Provider::refreshToken(string $refreshToken): Psr\Http\Message\ResponseInterface must be compatible with Laravel\Socialite\Two\AbstractProvider::refreshToken($refreshToken)

at vendor/socialiteproviders/apple/Provider.php:289

Steps To Reproduce

driesvints commented 11 months ago

Please see previous issues. This needs to be fixed in the socialite providers repo.