Skip to content

Commit

Permalink
Fix invalid type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Dec 11, 2023
1 parent 6ea49e1 commit de1371d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Tmdb/SyncMovie.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function syncMovie(int $tmdbId) : MovieEntity
tagline: $tmdbMovie->getTagline(),
overview: $tmdbMovie->getOverview(),
originalLanguage: $tmdbMovie->getOriginalLanguage(),
releaseDate: Date::createFromDateTime($tmdbMovie->getReleaseDate()),
releaseDate: $tmdbMovie->getReleaseDate()?->asDate(),
runtime: $tmdbMovie->getRuntime(),
tmdbVoteAverage: $tmdbMovie->getVoteAverage(),
tmdbVoteCount: $tmdbMovie->getVoteCount(),
Expand Down

0 comments on commit de1371d

Please sign in to comment.