Skip to content

Commit

Permalink
Merge pull request #535 from zendesk/RED-2203-debug-headers-as-string
Browse files Browse the repository at this point in the history
Debug headers as JSON - Fix #465
  • Loading branch information
ecoologic committed May 24, 2024
2 parents fe7d4b5 + d05517f commit 276fb53
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 276fb53

Please sign in to comment.