Skip to content

Commit 8daf165

Browse files
authored
Update docblock type for $json parameter
This `$json` parameter passed as a Guzzle `json` request option is intended to be an `array` as referenced in the calling Intercom endpoint classes.
1 parent edbd840 commit 8daf165

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/IntercomClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function setClient($client)
141141
* Sends POST request to Intercom API.
142142
*
143143
* @param string $endpoint
144-
* @param string $json
144+
* @param array $json
145145
* @return mixed
146146
* @throws \GuzzleHttp\Exception\GuzzleException
147147
*/
@@ -164,7 +164,7 @@ public function post($endpoint, $json)
164164
* Sends PUT request to Intercom API.
165165
*
166166
* @param string $endpoint
167-
* @param string $json
167+
* @param array $json
168168
* @return mixed
169169
* @throws \GuzzleHttp\Exception\GuzzleException
170170
*/
@@ -188,7 +188,7 @@ public function put($endpoint, $json)
188188
* Sends DELETE request to Intercom API.
189189
*
190190
* @param string $endpoint
191-
* @param string $json
191+
* @param array $json
192192
* @return mixed
193193
* @throws \GuzzleHttp\Exception\GuzzleException
194194
*/

0 commit comments

Comments
 (0)