From ab0058a8734dc333447a7939dbbb05c5baa3685e Mon Sep 17 00:00:00 2001 From: Tarjei Huse Date: Wed, 9 Sep 2020 14:25:10 +0200 Subject: [PATCH] Fix bug where handleResponse() is called twice You'll probably want better tests here.... --- src/IntercomClient.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/IntercomClient.php b/src/IntercomClient.php index f9532e8e..2ba313fc 100644 --- a/src/IntercomClient.php +++ b/src/IntercomClient.php @@ -284,8 +284,7 @@ public function nextSearchPage(string $path, array $query, $pages) "starting_after" => $pages->next->starting_after, ] ]; - $response = $this->post($path, $options); - return $this->handleResponse($response); + return $this->post($path, $options); } /**