diff --git a/README.md b/README.md index ffb61ef..6707565 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ composer require gemorroj/m3u-parser ```php */ diff --git a/src/M3uEntry.php b/src/M3uEntry.php index f87c105..4d4e6fb 100644 --- a/src/M3uEntry.php +++ b/src/M3uEntry.php @@ -1,5 +1,7 @@ title; } - public function setDuration(float $duration): self + public function setDuration(float|int $duration): self { - $this->duration = $duration; + $this->duration = (float) $duration; return $this; } diff --git a/src/Tag/ExtLogo.php b/src/Tag/ExtLogo.php index 3698c9d..e6da3d6 100644 --- a/src/Tag/ExtLogo.php +++ b/src/Tag/ExtLogo.php @@ -1,5 +1,7 @@