laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.

Home Page:https://laravel.com/docs/socialite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fabioferreira3 opened this issue · comments

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

  • Upgrade to latest v5.11.0 of the package
  • Downgrading to v5.10.0 currently is the only way to avoid the issue.

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