Skip to content

Commit

Permalink
Merge pull request #201 from fnwbr/patch-1
Browse files Browse the repository at this point in the history
Use correct PHPdoc types for user IDs
  • Loading branch information
Brian White authored Apr 4, 2017
2 parents 037fea9 + 8d3d848 commit 9ebffdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IntercomClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function delete($endpoint, $json)

/**
* @param string $endpoint
* @param string $query
* @param array $query
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
Expand Down
8 changes: 6 additions & 2 deletions src/IntercomUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getUsers($options)
/**
* Gets a single User based on the Intercom ID.
* @see https://developers.intercom.com/reference#view-a-user
* @param integer $id
* @param string $id
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
Expand All @@ -81,7 +81,7 @@ public function scrollUsers($options = [])
/**
* Deletes a single User based on the Intercom ID.
* @see https://developers.intercom.com/reference#delete-a-user
* @param integer $id
* @param string $id
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
Expand All @@ -92,6 +92,10 @@ public function deleteUser($id, $options = [])
return $this->client->delete($path, $options);
}

/**
* @param string $id
* @return string
*/
public function userPath($id)
{
return 'users/' . $id;
Expand Down

0 comments on commit 9ebffdf

Please sign in to comment.