Skip to content

Commit 77bbf19

Browse files
Automatically update PHP SDK
1 parent 66d14ee commit 77bbf19

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trophy/php",
3-
"version": "1.0.19",
3+
"version": "1.0.20",
44
"description": "Trophy PHP Library",
55
"keywords": [
66
"trophy",

src/Types/StreakResponse.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ class StreakResponse extends JsonSerializableType
2020
#[JsonProperty('streakHistory'), ArrayType([StreakResponseStreakHistoryItem::class])]
2121
public ?array $streakHistory;
2222

23+
/**
24+
* @var ?int $rank The user's rank across all users. Null if the user has no active streak.
25+
*/
26+
#[JsonProperty('rank')]
27+
public ?int $rank;
28+
2329
/**
2430
* @param array{
2531
* streakHistory?: ?array<StreakResponseStreakHistoryItem>,
32+
* rank?: ?int,
2633
* length: int,
2734
* frequency: value-of<StreakFrequency>,
2835
* started?: ?string,
@@ -35,6 +42,7 @@ public function __construct(
3542
array $values,
3643
) {
3744
$this->streakHistory = $values['streakHistory'] ?? null;
45+
$this->rank = $values['rank'] ?? null;
3846
$this->length = $values['length'];
3947
$this->frequency = $values['frequency'];
4048
$this->started = $values['started'] ?? null;

0 commit comments

Comments
 (0)