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.
2 parents f9d0143 + cf1eb4a commit 2b0db15Copy full SHA for 2b0db15
src/Fcm.php
@@ -59,8 +59,9 @@ public function send()
59
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
60
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, CURL_IPRESOLVE_V4);
61
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
62
- $result = curl_exec($ch);
63
-
64
- curl_close($ch);
+ $result = json_decode(curl_exec($ch));
+ curl_close($ch);
+
65
+ return $result;
66
}
67
0 commit comments