setScopes, scopes and other methods not declared in PHPDoc
adic3x opened this issue · comments
adic3x commented
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.
Dries Vints commented
Please see the contribution docs about docblocks and send in a PR if you want. Thanks