Skip to content

Commit

Permalink
fix(NFS-1978): make types optional to fix runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninerian committed Dec 19, 2022
1 parent ba9f9a0 commit 359847e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/SSOData/SSODataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 359847e

Please sign in to comment.