We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc09137 commit 354c849Copy full SHA for 354c849
1 file changed
src/Webhook.php
@@ -144,7 +144,7 @@ private function getPayloadValue(string $key): SimpleXMLElement|string|null
144
if ((is_countable($payload->children()) ? count($payload->children()) : 0) > 0) {
145
return $payload;
146
}
147
- return $payload->$key ?? '';
+ return $payload ?? '';
148
149
150
private function getPayload(): SimpleXMLElement
@@ -175,7 +175,7 @@ private function isIdentity(): bool
175
// general, shared attributes
176
public function getEntranceCode(): ?string
177
{
178
- return $this->getPayload()->attributes()['EntranceCode'] . '' ?? null;
+ return $this->getPayload()->attributes()->entranceCode . '' ?? null;
179
180
181
// Different attributes for different services
0 commit comments