fix: return type of parseState removed

This commit is contained in:
Christy Jacob 2019-10-13 22:25:39 +04:00
parent 26071b9a3c
commit 17590846a1
2 changed files with 5 additions and 1 deletions

View file

@ -87,7 +87,7 @@ abstract class OAuth
*
* @return string
*/
public function parseState(string $state): string
public function parseState(string $state)
{
return json_decode($state, true);
}

View file

@ -39,6 +39,7 @@ class Stackoverflow extends OAuth
'&state='.urlencode(json_encode($this->state));
}
/**
* @param string $code
*
@ -46,6 +47,9 @@ class Stackoverflow extends OAuth
*/
public function getAccessToken(string $code): string
{
var_dump($code);
exit();
$accessToken = $this->request(
'POST',
'https://www.googleapis.com/oauth2/'.$this->version.'/token?'.