Skip to content

Implement IPlayerService/GetOwnedGames - #28

Open
ilumos wants to merge 4 commits into
Astrotomic:mainfrom
zeropingheroes:getownedgames
Open

Implement IPlayerService/GetOwnedGames#28
ilumos wants to merge 4 commits into
Astrotomic:mainfrom
zeropingheroes:getownedgames

Conversation

@ilumos

@ilumos ilumos commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Implement IPlayerService/GetOwnedGames.

Please let me know any changes I should make. Thanks :)

Comment thread src/Requests/GetOwnedGamesRequest.php Outdated

public function defaultQuery(): array
{
return array_filter([

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

array_filter() will remove all falsy values which is false as well - so should do an explicit === null check in the callback.

@Gummibeer Gummibeer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix the array_filter() call

'include_extended_appinfo' => $this->include_extended_appinfo,
'include_played_free_games' => $this->include_played_free_games,
],
fn($value) => $value !== null

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added explicit null check.

@ilumos
ilumos requested a review from Gummibeer January 30, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants