Skip to content

Commit

Permalink
Merge pull request #217 from PrestaShopCorp/hotfix/cast-token-tostring
Browse files Browse the repository at this point in the history
fix: cast token to string in legacy methods of PsAccountsService
  • Loading branch information
atourneriePresta authored Sep 15, 2021
2 parents e7b3160 + bb61211 commit 6bf1929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Service/PsAccountsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getShopUuidV4()
*/
public function getOrRefreshToken()
{
return $this->shopTokenRepository->getOrRefreshToken();
return (string) $this->shopTokenRepository->getOrRefreshToken();
}

/**
Expand All @@ -113,7 +113,7 @@ public function getRefreshToken()
*/
public function getToken()
{
return $this->shopTokenRepository->getToken();
return (string) $this->shopTokenRepository->getToken();
}

/**
Expand Down

0 comments on commit 6bf1929

Please sign in to comment.