Skip to content

Allow NULL in Episode runtime #293

Closed

Description

@milkovsky

Some eposodes to not have a runtime.

When calling new TvRepository($tmdb_client)->load(30984) I get:

TypeError: Tmdb\Model\Tv\Episode::setRuntime(): Argument #1 ($runtime) must be of type int, null given, called in /app/vendor/php-tmdb/api/lib/Tmdb/Common/ObjectHydrator.php on line 52 in Tmdb\Model\Tv\Episode->setRuntime() (line 525 of /app/vendor/php-tmdb/api/lib/Tmdb/Model/Tv/Episode.php).

Image

Proposed solution:

Allow NULL in \Tmdb\Model\Tv\Episode::setRuntime

Activity

  1. milkovsky commented on Jul 31, 2026

    @milkovsky
    ContributorAuthor

    See a related PR #294

  2. neildaniels commented on Aug 23, 2026

    @neildaniels
    Contributor

    Merged in #294 and tagged as 4.1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions