From fbffb959d5457131fee3ba281074dcd8c5134c9c Mon Sep 17 00:00:00 2001 From: Pier <61907396+Pier-d@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:24:49 +0200 Subject: [PATCH] Update WhatsAppVideo.php (#509) --- src/Messages/Channel/WhatsApp/WhatsAppVideo.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Messages/Channel/WhatsApp/WhatsAppVideo.php b/src/Messages/Channel/WhatsApp/WhatsAppVideo.php index 13554feb..6d92d06f 100644 --- a/src/Messages/Channel/WhatsApp/WhatsAppVideo.php +++ b/src/Messages/Channel/WhatsApp/WhatsAppVideo.php @@ -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; } -} \ No newline at end of file +}