Skip to content

Commit 578e856

Browse files
authored
Merge pull request #32 from erlangp/patch-9
result as array
2 parents d030116 + de97842 commit 578e856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fcm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function send()
9999
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
100100
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, CURL_IPRESOLVE_V4);
101101
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payloads));
102-
$result = json_decode(curl_exec($ch));
102+
$result = json_decode(curl_exec($ch), true);
103103
curl_close($ch);
104104

105105
return $result;

0 commit comments

Comments
 (0)