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] 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); }