Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
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