Skip to content

Commit 359847e

Browse files
committed
fix(NFS-1978): make types optional to fix runtime errors
1 parent ba9f9a0 commit 359847e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/SSOData/SSODataTrait.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ trait SSODataTrait
2727
/**
2828
* Get the branch id of the app that issued the token.
2929
*
30-
* The id will always be present.
31-
*
32-
* @return string
30+
* @return null|string
3331
*/
34-
public function getBranchId(): string
32+
public function getBranchId(): ?string
3533
{
3634
return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_BRANCH_ID);
3735
}
@@ -61,9 +59,9 @@ public function getSessionId(): ?string
6159
*
6260
* The id will always be present.
6361
*
64-
* @return string
62+
* @return null|string
6563
*/
66-
public function getInstanceId(): string
64+
public function getInstanceId(): ?string
6765
{
6866
return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_INSTANCE_ID);
6967
}

0 commit comments

Comments
 (0)