We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc6ae6 commit 9c2cd96Copy full SHA for 9c2cd96
src/Messages/Channel/WhatsApp/WhatsAppAudio.php
@@ -26,10 +26,7 @@ public function toArray(): array
26
{
27
$returnArray = $this->getBaseMessageUniversalOutputArray();
28
$returnArray['audio'] = $this->audioObject->toArray();
29
-
30
- if (!is_null($this->context)) {
31
- $returnArray['context'] = $this->context;
32
- }
+ $returnArray['context'] = $this->context ?? null;
33
34
return $returnArray;
35
}
0 commit comments