Skip to content

Commit

Permalink
temporary fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschlick committed Feb 22, 2017
1 parent d546d19 commit de16ea9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function create(string $objectType, array $payload, array $options = [])
return array_get($this->makePostRequest(
$this->makeUri($objectType, 'create', $this->makeFields($options)),
$payload
), $objectType);
), $objectType, []);
}

/**
Expand All @@ -136,7 +136,7 @@ public function update(string $objectType, int $id, array $payload, array $optio
return array_get($this->makePostRequest(
$this->makeUri($objectType, 'update', $options),
$this->makeFields($payload)
), $objectType);
), $objectType, []);
}

/**
Expand All @@ -154,7 +154,7 @@ public function upsert(string $objectType, int $id, array $payload, array $optio
return array_get($this->makePostRequest(
$this->makeUri($objectType, 'upsert', $options),
$this->makeFields($payload)
), $objectType);
), $objectType, []);
}

/**
Expand Down Expand Up @@ -197,7 +197,7 @@ protected function makeGetRequest(string $url) : array
{
$result = $this->connection->get($url);

return json_decode($result->getBody()->getContents(), true);
return (array) json_decode($result->getBody()->getContents(), true);
}

/**
Expand All @@ -212,7 +212,7 @@ protected function makePostRequest(string $url, array $fields = []) : array
'form_params' => $fields,
]);

return json_decode($result->getBody()->getContents(), true);
return (array) json_decode($result->getBody()->getContents(), true);
}

/**
Expand Down

0 comments on commit de16ea9

Please sign in to comment.