Skip to content

Commit

Permalink
Fixed asRaw to return content instead of response object.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsdre committed Jan 6, 2017
1 parent 2097479 commit 73f2207
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function deleteData(
// API Data response methods

/**
* Return response as array
* Return content as array
*
* @return array
* @throws Exception
Expand All @@ -275,7 +275,7 @@ public function asArray() {
}

/**
* Return response as object
* Return content as object
*
* @return \stdClass
* @throws Exception
Expand All @@ -287,12 +287,12 @@ public function asObject() {
}

/**
* Get the raw response object
* Get the raw content object
*
* @return yii\httpclient\Response
*/
public function asRaw() {
return $this->response;
return $this->response->content;
}

/**
Expand Down

0 comments on commit 73f2207

Please sign in to comment.