Skip to content

Commit

Permalink
Fix nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
canihavesomecoffee committed Feb 20, 2022
1 parent 50f5c1d commit 8d467b1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 2.x

### 2.1.5 (20 February 2022)

Bugfix release (nullable types again)

### 2.1.4 (20 February 2022)

Bugfix release (nullable types again)
Expand Down
16 changes: 8 additions & 8 deletions src/Model/EpisodeExtendedRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class EpisodeExtendedRecord extends EpisodeBaseRecord
/**
* Content ratings this episode received.
*
* @var ContentRating[] Entries are of type ContentRating.
* @var ContentRating[]|null
*/
public array $contentRatings;
public ?array $contentRatings;
/**
* The network that recorded this episode.
*
Expand All @@ -76,19 +76,19 @@ class EpisodeExtendedRecord extends EpisodeBaseRecord
/**
* Trailers that are available for this episode.
*
* @var InspirationType[] Entries are of type Trailer.
* @var Trailer[]|null
*/
public array $trailers;
public ?array $trailers;
/**
* List of companies for this series.
*
* @var Company[]
* @var Company[]|null
*/
public array $studios;
public ?array $studios;
/**
* Nominations for this episode.
*
* @var AwardNomineeBaseRecord[]
* @var AwardNomineeBaseRecord[]|null
*/
public array $nominations;
public ?array $nominations;
}
16 changes: 8 additions & 8 deletions src/Model/MovieExtendedRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class MovieExtendedRecord extends MovieBaseRecord
/**
* Content ratings.
*
* @var ContentRating[]
* @var ContentRating[]|null
*/
public array $contentRatings;
public ?array $contentRatings;
/**
* First release info.
*
Expand All @@ -138,19 +138,19 @@ class MovieExtendedRecord extends MovieBaseRecord
/**
* Inspirations?
*
* @var Inspiration[]
* @var Inspiration[]|null
*/
public array $inspirations;
public ?array $inspirations;
/**
* Production countries.
*
* @var ProductionCountry[]
* @var ProductionCountry[]|null
*/
public array $production_countries;
public ?array $production_countries;
/**
* Spoken languages.
*
* @var string[]
* @var string[]|null
*/
public array $spoken_languages;
public ?array $spoken_languages;
}
4 changes: 2 additions & 2 deletions src/Model/SeriesExtendedRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ class SeriesExtendedRecord extends SeriesBaseRecord
/**
* Content ratings this series received.
*
* @var ContentRating[] Entries are of type ContentRating.
* @var ContentRating[]|null
*/
public array $contentRatings;
public ?array $contentRatings;
/**
* The overview if provided.
*
Expand Down

0 comments on commit 8d467b1

Please sign in to comment.