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

setScopes, scopes and other methods not declared in PHPDoc

adic3x opened this issue · comments

Socialite Version

5.8.0

Laravel Version

10.*

PHP Version

8.2.*

Database Driver & Version

No response

Description

Example from documentation (https://laravel.com/docs/10.x/socialite#access-scopes)

use Laravel\Socialite\Facades\Socialite;
 
return Socialite::driver('github')
    ->scopes(['read:user', 'public_repo'])
    ->redirect();

scopes highlighted as non-existent method because it not declared in socialite\src\Facades\Socialite.php https://github.com/laravel/socialite/blob/5.x/src/Facades/Socialite.php (at least in VS Code).

As I understand scopes, setScopes, getScopes and redirectUrl must be declared in PHPDoc.

Steps To Reproduce

Open IDE and paste code.

Please see the contribution docs about docblocks and send in a PR if you want. Thanks

https://laravel.com/docs/10.x/contributions#bug-reports