Skip to content

Commit

Permalink
fix: symfony insight (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
robiiinos authored Oct 20, 2020
1 parent 2dbd9de commit ecd506b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/OAuth1/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Http\RedirectResponse;
use InvalidArgumentException;
use Laravel\Socialite\One\AbstractProvider as BaseProvider;
use League\OAuth1\Client\Credentials\CredentialsException;
use League\OAuth1\Client\Credentials\TokenCredentials;
use SocialiteProviders\Manager\ConfigTrait;
use SocialiteProviders\Manager\Contracts\ConfigInterface as Config;
Expand Down Expand Up @@ -39,6 +40,8 @@ public static function serviceContainerKey($providerName)

/**
* {@inheritdoc}
*
* @throws \League\OAuth1\Client\Credentials\CredentialsException
*/
public function user()
{
Expand Down Expand Up @@ -86,7 +89,7 @@ public function userFromTokenAndSecret($token, $secret)
/**
* Redirect the user to the authentication page for the provider.
*
* @return RedirectResponse
* @return \Illuminate\Http\RedirectResponse
*/
public function redirect()
{
Expand Down
2 changes: 1 addition & 1 deletion src/SocialiteWasCalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected function buildOAuth2Provider(SocialiteManager $socialite, $providerCla
*
* @throws \SocialiteProviders\Manager\Exception\MissingConfigException
*/
protected function getConfig($providerClass, $providerName)
protected function getConfig(string $providerClass, string $providerName)
{
return $this->configRetriever->fromServices(
$providerName, $providerClass::additionalConfigKeys()
Expand Down

0 comments on commit ecd506b

Please sign in to comment.