diff --git a/src/APnutI.php b/src/APnutI.php index 8507746..642b00c 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -662,7 +662,8 @@ class APnutI return $this->current_user; } - public function getUser(int $user_id, array $args = []) + // User ID or user name + public function getUser(int|string $user_id, array $args = []) { return new User($this->get('/users/' . $user_id, $args), $this); }