Skip to content

Commit

Permalink
Add __toString() to ZttpResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightwatson authored Aug 17, 2017
1 parent e788ab8 commit 90af38b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Zttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ function isServerError()
return $this->status() >= 500;
}

function __toString()
{
return $this->body();
}

function __call($method, $args)
{
if (static::hasMacro($method)) {
Expand Down

0 comments on commit 90af38b

Please sign in to comment.