Skip to content

Commit c19eeba

Browse files
committed
Fix json data property in toArray method in ExpoMessage
1 parent ab00c9d commit c19eeba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ExpoMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function toArray()
168168
'sound' => $this->sound,
169169
'badge' => $this->badge,
170170
'ttl' => $this->ttl,
171-
'jsonData' => $this->jsonData,
171+
'data' => $this->jsonData,
172172
];
173173
}
174174
}

tests/MessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ public function itCanSetJSONData()
9696
{
9797
$this->message->setJsonData('{"name":"Aly"}');
9898

99-
$this->assertEquals('{"name":"Aly"}', Arr::get($this->message->toArray(), 'jsonData'));
99+
$this->assertEquals('{"name":"Aly"}', Arr::get($this->message->toArray(), 'data'));
100100
}
101101
}

0 commit comments

Comments
 (0)