diff --git a/src/Zendesk/API/Debug.php b/src/Zendesk/API/Debug.php index fb87c753..eba48c22 100755 --- a/src/Zendesk/API/Debug.php +++ b/src/Zendesk/API/Debug.php @@ -20,7 +20,7 @@ class Debug */ public $lastResponseCode; /** - * @var string + * @var mixed */ public $lastResponseHeaders; /** @@ -39,8 +39,8 @@ public function __toString() } $output = 'LastResponseCode: ' . $this->lastResponseCode . ', LastResponseError: ' . $lastError - . ', LastResponseHeaders: ' . $this->lastResponseHeaders - . ', LastRequestHeaders: ' . $this->lastRequestHeaders + . ', LastResponseHeaders: ' . json_encode($this->lastResponseHeaders) + . ', LastRequestHeaders: ' . json_encode($this->lastRequestHeaders) . ', LastRequestBody: ' . $this->lastRequestBody; return $output;