From be1f0c2a55bac97d1f3f4e1e92706e932ba83607 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Thu, 15 Apr 2021 18:25:47 +0200 Subject: [PATCH] Issue with getting languages from a tv show, fixes #233 --- lib/Tmdb/Model/Tv.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Tmdb/Model/Tv.php b/lib/Tmdb/Model/Tv.php index 5e7b032c..33c55538 100644 --- a/lib/Tmdb/Model/Tv.php +++ b/lib/Tmdb/Model/Tv.php @@ -21,6 +21,7 @@ use Tmdb\Model\Collection\Videos; use Tmdb\Model\Common\ExternalIds; use Tmdb\Model\Common\GenericCollection; +use Tmdb\Model\Common\SpokenLanguage; use Tmdb\Model\Image\BackdropImage; use Tmdb\Model\Image\PosterImage; use Tmdb\Model\Tv\Episode; @@ -162,7 +163,7 @@ class Tv extends AbstractModel */ private $inProduction; /** - * @var array + * @var GenericCollection|SpokenLanguage[] */ private $languages; /** @@ -256,6 +257,7 @@ public function __construct() $this->recommendations = new GenericCollection(); $this->contentRatings = new GenericCollection(); $this->alternativeTitles = new GenericCollection(); + $this->languages = new GenericCollection(); } /** @@ -434,9 +436,9 @@ public function setInProduction($inProduction) } /** - * @return array + * @return GenericCollection */ - public function getLanguages(): array + public function getLanguages(): GenericCollection { return $this->languages; }