From 4e9f251a38ed8635a9f222961c6669bc11956fe0 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 28 Jan 2019 21:25:04 -0500 Subject: [PATCH] Grab the object as an array, not a stdClass --- src/Objects/ObjectsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/ObjectsService.php b/src/Objects/ObjectsService.php index ae6dcb7..f0111f6 100644 --- a/src/Objects/ObjectsService.php +++ b/src/Objects/ObjectsService.php @@ -129,7 +129,7 @@ class ObjectsService if ( $response->getStatusCode() !== 200 || empty( $response->getBody() ) ) { return; } - $object = json_decode( $response->getBody() ); + $object = json_decode( $response->getBody(), true ); if ( ! $object ) { return; }