Skip to content

Commit 3975e61

Browse files
committed
Json decoding is done with associative flag set to true
1 parent 4748002 commit 3975e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OneSignalClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ private function formatResponse(ResponseInterface $response)
740740
{
741741
return [
742742
'status' => $response->getStatusCode(),
743-
'data' => json_decode($response->getBody()->getContents()),
743+
'data' => json_decode($response->getBody()->getContents(), true),
744744
];
745745
}
746746

0 commit comments

Comments
 (0)