Skip to content

Commit

Permalink
Update WhatsAppVideo.php (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pier-d authored Oct 14, 2024
1 parent 5c86459 commit fbffb95
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Messages/Channel/WhatsApp/WhatsAppVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ public function toArray(): array
{
$returnArray = $this->getBaseMessageUniversalOutputArray();
$returnArray['video'] = $this->videoObject->toArray();

if (!is_null($this->context)) {
$returnArray['context'] = $this->context;
}
$returnArray['context'] = $this->context ?? null;

return $returnArray;
}
}
}

0 comments on commit fbffb95

Please sign in to comment.