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 7303140 commit c4f353fCopy full SHA for c4f353f
src/Messages/Channel/WhatsApp/WhatsAppSticker.php
@@ -38,10 +38,7 @@ public function toArray(): array
38
{
39
$returnArray = $this->getBaseMessageUniversalOutputArray();
40
$returnArray['sticker'] = $this->getSticker()->toArray();
41
-
42
- if (!is_null($this->context)) {
43
- $returnArray['context'] = $this->context;
44
- }
+ $returnArray['context'] = $this->context ?? null;
45
46
return $returnArray;
47
}
0 commit comments