Skip to content

Commit ae19e0b

Browse files
authored
Merge pull request #10 from eckelarsson/patch-2
Implicit conversion from float (PHP 8)
2 parents 8830af1 + ce72d50 commit ae19e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Timecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function calculateFrameCountWithDropFrame() : float
239239
*/
240240
public function durationInSeconds() : int
241241
{
242-
return $this->frameCount / $this->frameRate;
242+
return (int) ($this->frameCount / $this->frameRate);
243243
}
244244

245245
/**

0 commit comments

Comments
 (0)