Skip to content

Commit

Permalink
Debug headers as JSON
Browse files Browse the repository at this point in the history
Fix #465
  • Loading branch information
ecoologic committed May 20, 2024
1 parent fe7d4b5 commit d05517f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Zendesk/API/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Debug
*/
public $lastResponseCode;
/**
* @var string
* @var mixed
*/
public $lastResponseHeaders;
/**
Expand All @@ -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;
Expand Down

0 comments on commit d05517f

Please sign in to comment.