We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbffb95 commit 8d8183aCopy full SHA for 8d8183a
src/Messages/Channel/WhatsApp/WhatsAppFile.php
@@ -26,11 +26,8 @@ public function toArray(): array
26
{
27
$returnArray = $this->getBaseMessageUniversalOutputArray();
28
$returnArray['file'] = $this->fileObject->toArray();
29
-
30
- if (!is_null($this->context)) {
31
- $returnArray['context'] = $this->context;
32
- }
+ $returnArray['context'] = $this->context ?? null;
33
34
return $returnArray;
35
}
36
-}
+}
0 commit comments