SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
499 stars 438 forks source link

PHPStan detect error #1049

Open Geovanek opened 1 year ago

Geovanek commented 1 year ago

Hello,

Using Larastan for static code analysis, the following error always appears.

I've tried a few things but I couldn't get around it, except asking PHPStan to ignore these lines.

Line   Traits/SocialiteProviders/StravaSocialiteProvider.php (in context of class
         App\Http\Controllers\Auth\LoginController)
 ------ --------------------------------------------------------------------------------
  18     Call to an undefined method Laravel\Socialite\Contracts\Provider::setScopes().
  26     Call to an undefined method Laravel\Socialite\Contracts\Provider::stateless().
atymic commented 8 months ago

Feel free to PR a fix for this. I'm not familiar with PHPstan