@@ -104,7 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Guests stars |
| 107 | - * @return \Generator|Results\Cast |
|
| 107 | + * @return \Generator |
|
| 108 | 108 | */ |
| 109 | 109 | public function getGuestStars() : \Generator |
| 110 | 110 | { |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * Episodes list |
| 111 | - * @return \Generator|Results\TVEpisode |
|
| 111 | + * @return \Generator |
|
| 112 | 112 | */ |
| 113 | 113 | public function getEpisodes() : \Generator |
| 114 | 114 | { |
@@ -51,7 +51,8 @@ |
||
| 51 | 51 | $this->logger = $tmdb->getLogger(); |
| 52 | 52 | $this->params = $this->tmdb->checkOptions($options); |
| 53 | 53 | $this->data = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params); |
| 54 | - } catch (TmdbException $ex) { |
|
| 54 | + } |
|
| 55 | + catch (TmdbException $ex) { |
|
| 55 | 56 | throw $ex; |
| 56 | 57 | } |
| 57 | 58 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleMovieCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'movie', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleTVShowCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'tv', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |