Skip to content

Commit

Permalink
Merge pull request #8 from leereichardt/master
Browse files Browse the repository at this point in the history
Updated getResourceOwner $token param to be the correct type interface
  • Loading branch information
calcinai authored Oct 4, 2020
2 parents 5794ccd + b71e1b4 commit 576e704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Provider/Xero.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public function getResourceOwnerDetailsUrl(AccessToken $token)
}

/**
* @param AccessToken $token
* @param AccessTokenInterface $token
* @return XeroResourceOwner
*/
public function getResourceOwner(AccessToken $token)
public function getResourceOwner(AccessTokenInterface $token)
{
return XeroResourceOwner::fromJWT($token->getValues()['id_token']);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ protected function createResourceOwner(array $response, AccessToken $token)
{
// This does nothing as we get the resource owner from the token itself, don't need to make a request to get it.
}

/**
* @param mixed|null $token
* @return array
Expand Down

0 comments on commit 576e704

Please sign in to comment.