From 122895813028244756ea688f568fb6c34692fb60 Mon Sep 17 00:00:00 2001 From: edujugon Date: Tue, 6 Nov 2018 20:12:10 +0100 Subject: [PATCH] Using JSON_BIGINT_AS_STRING as bitmask to prevent large integers convertion to float type Issue reference #63 --- src/Gcm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gcm.php b/src/Gcm.php index 533e7f4..ea0c7da 100644 --- a/src/Gcm.php +++ b/src/Gcm.php @@ -150,7 +150,7 @@ public function send(array $deviceTokens, array $message) $json = $result->getBody(); - $this->setFeedback(json_decode($json)); + $this->setFeedback(json_decode($json , false , 512 , JSON_BIGINT_AS_STRING)); return $this->feedback;