From bb61211b183ab00aa2ee0cb80ab73060339f7f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Schoenenberger?= Date: Wed, 15 Sep 2021 14:44:43 +0200 Subject: [PATCH] fix: cast token to string in legacy methods of PsAccountsService --- classes/Service/PsAccountsService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Service/PsAccountsService.php b/classes/Service/PsAccountsService.php index d66764c6f..39466694a 100644 --- a/classes/Service/PsAccountsService.php +++ b/classes/Service/PsAccountsService.php @@ -97,7 +97,7 @@ public function getShopUuidV4() */ public function getOrRefreshToken() { - return $this->shopTokenRepository->getOrRefreshToken(); + return (string) $this->shopTokenRepository->getOrRefreshToken(); } /** @@ -113,7 +113,7 @@ public function getRefreshToken() */ public function getToken() { - return $this->shopTokenRepository->getToken(); + return (string) $this->shopTokenRepository->getToken(); } /**