Grab the object as an array, not a stdClass
This commit is contained in:
parent
23b993f05d
commit
4e9f251a38
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user