Skip to content

Commit

Permalink
refactor: rename user.update options args
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Dec 9, 2024
1 parent 18676d9 commit 32dc1e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom/lib/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ public function deactivate(string $userId): PassageUser
* Update a user.
*
* @param string $userId The Passage user ID
* @param UpdateUserArgs $args The updated user information
* @param UpdateUserArgs $options The updated user information
* @return PassageUser Passage User Object
* @throws InvalidArgumentException Invalid parameter value
* @throws PassageError
*/
public function update(string $userId, UpdateUserArgs $args): PassageUser
public function update(string $userId, UpdateUserArgs $options): PassageUser
{
if (!$userId) {
throw new InvalidArgumentException('userId is required');
}

try {
return $this->usersApi->updateUser($this->appId, $userId, $args)->getUser();
return $this->usersApi->updateUser($this->appId, $userId, $options)->getUser();
} catch (ApiException $e) {
throw PassageError::fromApiException($e);
}
Expand Down

0 comments on commit 32dc1e3

Please sign in to comment.