Grab the object as an array, not a stdClass

This commit is contained in:
Jeremy Dormitzer 2019-01-28 21:25:04 -05:00
parent 23b993f05d
commit 4e9f251a38

View File

@ -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;
}