-
-
Notifications
You must be signed in to change notification settings - Fork 1
Implement IPlayerService/GetOwnedGames
#28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| public function defaultQuery(): array | ||
| { | ||
| return array_filter([ |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added explicit null check.
Implement
IPlayerService/GetOwnedGames.Please let me know any changes I should make. Thanks :)