Skip to content

Commit 6583f19

Browse files
authored
Merge pull request #1 from staileu/more-infos
Added more infos on getUserByIdOrUsername
2 parents ae87425 + bb7389e commit 6583f19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Client.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ public function getUserByIdOrUsername(string $idOrUsername)
169169
$user = new User();
170170
$user->id = $userRow['id'];
171171
$user->username = $userRow['username'];
172+
$user->email = $userRow['email'];
173+
$user->firstName = $userRow['first_name'];
174+
$user->lastName = $userRow['last_name'];
175+
$user->birthday = $userRow['birthday'] == NULL ? NULL : $userRow['birthday'];
172176
$user->avatarUrl = $this->apiEndpoint . '/avatar/' . $user->id;
173177

174178
return $user;

0 commit comments

Comments
 (0)