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 8d8183a commit 7303140Copy full SHA for 7303140
src/Messages/Channel/WhatsApp/WhatsAppImage.php
@@ -26,10 +26,7 @@ public function toArray(): array
26
{
27
$returnArray = $this->getBaseMessageUniversalOutputArray();
28
$returnArray['image'] = $this->image->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