From f59e7a6d83f066df880fbf5b12f079b4cc218994 Mon Sep 17 00:00:00 2001 From: Bartosz Stachowiak <112800510+ZeBartosz@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:49:17 +0100 Subject: [PATCH 1/2] Update publishers to check the collection --- src/Syntax/SteamApi/Containers/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Syntax/SteamApi/Containers/App.php b/src/Syntax/SteamApi/Containers/App.php index 11c2a58..dc9372e 100644 --- a/src/Syntax/SteamApi/Containers/App.php +++ b/src/Syntax/SteamApi/Containers/App.php @@ -76,7 +76,7 @@ public function __construct($app) $this->pcRequirements = $app->pc_requirements; $this->legal = $this->checkIssetField($app, 'legal_notice', 'None'); $this->developers = $this->checkIssetCollection($app, 'developers'); - $this->publishers = new Collection($app->publishers); + $this->publishers = $this->checkIssetCollection($app 'publishers'); $this->price = $this->checkIssetField($app, 'price_overview', $this->getFakePriceObject()); $this->platforms = $app->platforms; $this->metacritic = $this->checkIssetField($app, 'metacritic', $this->getFakeMetacriticObject()); From d50d9aaf28e871986a60492c60c22f0275885d17 Mon Sep 17 00:00:00 2001 From: Bartosz Stachowiak <112800510+ZeBartosz@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:56:52 +0100 Subject: [PATCH 2/2] add comma to publishers check --- src/Syntax/SteamApi/Containers/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Syntax/SteamApi/Containers/App.php b/src/Syntax/SteamApi/Containers/App.php index dc9372e..ee6bdca 100644 --- a/src/Syntax/SteamApi/Containers/App.php +++ b/src/Syntax/SteamApi/Containers/App.php @@ -76,7 +76,7 @@ public function __construct($app) $this->pcRequirements = $app->pc_requirements; $this->legal = $this->checkIssetField($app, 'legal_notice', 'None'); $this->developers = $this->checkIssetCollection($app, 'developers'); - $this->publishers = $this->checkIssetCollection($app 'publishers'); + $this->publishers = $this->checkIssetCollection($app, 'publishers'); $this->price = $this->checkIssetField($app, 'price_overview', $this->getFakePriceObject()); $this->platforms = $app->platforms; $this->metacritic = $this->checkIssetField($app, 'metacritic', $this->getFakeMetacriticObject());