From 359847ea76e763f4738519e6c6b7e12b96b28dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gro=C3=9Fe?= Date: Mon, 19 Dec 2022 09:25:39 +0100 Subject: [PATCH 1/2] fix(NFS-1978): make types optional to fix runtime errors --- src/SSOData/SSODataTrait.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/SSOData/SSODataTrait.php b/src/SSOData/SSODataTrait.php index d45cda7..0926c66 100644 --- a/src/SSOData/SSODataTrait.php +++ b/src/SSOData/SSODataTrait.php @@ -27,11 +27,9 @@ trait SSODataTrait /** * Get the branch id of the app that issued the token. * - * The id will always be present. - * - * @return string + * @return null|string */ - public function getBranchId(): string + public function getBranchId(): ?string { return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_BRANCH_ID); } @@ -61,9 +59,9 @@ public function getSessionId(): ?string * * The id will always be present. * - * @return string + * @return null|string */ - public function getInstanceId(): string + public function getInstanceId(): ?string { return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_INSTANCE_ID); } From eca48ad4f08b8f16b2f218cc48abce3287207e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gro=C3=9Fe?= Date: Mon, 19 Dec 2022 13:44:37 +0100 Subject: [PATCH 2/2] chore: raise version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9f36a70..71be7b8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "staffbase/plugins-sdk-php", - "version": "2.1.1", + "version": "2.1.2", "type": "library", "description": "Staffbase PHP SDK library for plugins.", "keywords": ["staffbase", "plugins", "library", "php", "sdk"],