Skip to content

Commit

Permalink
feat: ✨ Accept id as a string (for user endpoint)
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Mar 17, 2021
1 parent 42dd8f0 commit 8343bfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Fluent.php
Expand Up @@ -209,13 +209,14 @@ protected function addQueryParameter(string $type, $value): Fluent

/**
* Add resource ID.
* @param int $id
* @param string|int $id
*
* @return $this
* @see handleType() for ID data type explanation for the user endpoint.
*
* @noinspection MissingParameterTypeDeclarationInspection
*/
public function id(int $id): Fluent
public function id($id): Fluent
{
$this->segments[] = $id;

Expand Down

0 comments on commit 8343bfa

Please sign in to comment.