Skip to content

Commit 9ebffdf

Browse files
author
Brian White
authored
Merge pull request #201 from fnwbr/patch-1
Use correct PHPdoc types for user IDs
2 parents 037fea9 + 8d3d848 commit 9ebffdf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/IntercomClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function delete($endpoint, $json)
151151

152152
/**
153153
* @param string $endpoint
154-
* @param string $query
154+
* @param array $query
155155
* @return mixed
156156
* @throws \GuzzleHttp\Exception\GuzzleException
157157
*/

src/IntercomUsers.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getUsers($options)
5555
/**
5656
* Gets a single User based on the Intercom ID.
5757
* @see https://developers.intercom.com/reference#view-a-user
58-
* @param integer $id
58+
* @param string $id
5959
* @param array $options
6060
* @return mixed
6161
* @throws \GuzzleHttp\Exception\GuzzleException
@@ -81,7 +81,7 @@ public function scrollUsers($options = [])
8181
/**
8282
* Deletes a single User based on the Intercom ID.
8383
* @see https://developers.intercom.com/reference#delete-a-user
84-
* @param integer $id
84+
* @param string $id
8585
* @param array $options
8686
* @return mixed
8787
* @throws \GuzzleHttp\Exception\GuzzleException
@@ -92,6 +92,10 @@ public function deleteUser($id, $options = [])
9292
return $this->client->delete($path, $options);
9393
}
9494

95+
/**
96+
* @param string $id
97+
* @return string
98+
*/
9599
public function userPath($id)
96100
{
97101
return 'users/' . $id;

0 commit comments

Comments
 (0)