Skip to content

Commit

Permalink
Import class.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Dec 5, 2015
1 parent 8a189d9 commit 65bebb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Providers/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Overtrue\Socialite\Providers;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use Overtrue\Socialite\AccessToken;
use Overtrue\Socialite\AccessTokenInterface;
Expand Down Expand Up @@ -281,7 +282,7 @@ protected function getTokenFields($code)
*/
protected function parseAccessToken($body)
{
return new AccessToken(json_decode($body, true));
return new AccessToken((array)json_decode($body, true));
}

/**
Expand Down Expand Up @@ -315,7 +316,7 @@ public function scopes(array $scopes)
*/
protected function getHttpClient()
{
return new \GuzzleHttp\Client();
return new Client();
}

/**
Expand Down

0 comments on commit 65bebb1

Please sign in to comment.