Skip to content

Commit

Permalink
Merge pull request #73 from Jeroenhulshof/master
Browse files Browse the repository at this point in the history
Fixes #72
  • Loading branch information
daanrijpkemacb authored Nov 2, 2024
2 parents dc09137 + 354c849 commit b5e52f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private function getPayloadValue(string $key): SimpleXMLElement|string|null
if ((is_countable($payload->children()) ? count($payload->children()) : 0) > 0) {
return $payload;
}
return $payload->$key ?? '';
return $payload ?? '';
}

private function getPayload(): SimpleXMLElement
Expand Down Expand Up @@ -175,7 +175,7 @@ private function isIdentity(): bool
// general, shared attributes
public function getEntranceCode(): ?string
{
return $this->getPayload()->attributes()['EntranceCode'] . '' ?? null;
return $this->getPayload()->attributes()->entranceCode . '' ?? null;
}

// Different attributes for different services
Expand Down

0 comments on commit b5e52f4

Please sign in to comment.