Skip to content

Commit

Permalink
lastlogoff is opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzrv committed May 31, 2023
1 parent f19d213 commit 0424d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SteamUserDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private function __construct(
private readonly string $avatarMedium,
private readonly string $avatarFull,
private readonly string $avatarHash,
private readonly int $lastLogoff,
private readonly ?int $lastLogoff,
private readonly int $personaState,
private readonly string $primaryClanId,
private readonly int $timeCreated,
Expand All @@ -40,7 +40,7 @@ public static function create(array $data): self
avatarMedium: $data['avatarmedium'],
avatarFull: $data['avatarfull'],
avatarHash: $data['avatarhash'],
lastLogoff: $data['lastlogoff'],
lastLogoff: $data['lastlogoff'] ?? null,
personaState: $data['personastate'],
primaryClanId: $data['primaryclanid'],
timeCreated: $data['timecreated'],
Expand Down Expand Up @@ -100,7 +100,7 @@ public function getAvatarHash(): string
return $this->avatarHash;
}

public function getLastLogoff(): int
public function getLastLogoff(): ?int
{
return $this->lastLogoff;
}
Expand Down

0 comments on commit 0424d6e

Please sign in to comment.