Skip to content

Commit 354c849

Browse files
Update Webhook.php
1 parent dc09137 commit 354c849

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Webhook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function getPayloadValue(string $key): SimpleXMLElement|string|null
144144
if ((is_countable($payload->children()) ? count($payload->children()) : 0) > 0) {
145145
return $payload;
146146
}
147-
return $payload->$key ?? '';
147+
return $payload ?? '';
148148
}
149149

150150
private function getPayload(): SimpleXMLElement
@@ -175,7 +175,7 @@ private function isIdentity(): bool
175175
// general, shared attributes
176176
public function getEntranceCode(): ?string
177177
{
178-
return $this->getPayload()->attributes()['EntranceCode'] . '' ?? null;
178+
return $this->getPayload()->attributes()->entranceCode . '' ?? null;
179179
}
180180

181181
// Different attributes for different services

0 commit comments

Comments
 (0)