Skip to content

Commit e6f7059

Browse files
authored
Fix undefined property when supported languages field is not set
1 parent 64d03ce commit e6f7059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Syntax/SteamApi/Containers

src/Syntax/SteamApi/Containers/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function __construct($app)
8383
$this->requiredAge = (int)$app->required_age;
8484
$this->isFree = $app->is_free;
8585
$this->shortDescription = $app->short_description;
86-
$this->supportedLanguages = $app->supported_languages;
86+
$this->supportedLanguages = $this->checkIssetField($app, 'supported_languages', 'None');
8787
$this->recommendations = $this->checkIssetField($app, 'recommendations', $this->getFakeRecommendationsObject());
8888
$this->achievements = $this->checkIssetField($app, 'achievements', $this->getFakeAchievementsObject());
8989
$this->dlc = $this->checkIssetCollection($app, 'dlc', new Collection());

0 commit comments

Comments
 (0)