Skip to content

Commit

Permalink
correct the nullcheck on whatsapp context.
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK committed Sep 12, 2024
1 parent 1167fa4 commit c3715f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messages/Channel/WhatsApp/WhatsAppText.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function toArray(): array
$returnArray = $this->getBaseMessageUniversalOutputArray();
$returnArray['text'] = $this->getText();

if (!is_null($this->context)) {
if (property_exists($this, 'context') && !is_null($this->context)) {
$returnArray['context'] = $this->context;
}

Expand Down

0 comments on commit c3715f1

Please sign in to comment.