Skip to content

Commit 370bc1f

Browse files
[fix] php8.x avoid implicit conversion errors (protonemedia#403)
1 parent 78dd7d4 commit 370bc1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/InteractsWithMediaStreams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public function getDurationInMiliseconds(): int
3333
$stream = Arr::first($this->getStreams());
3434

3535
if ($stream->has('duration')) {
36-
return $stream->get('duration') * 1000;
36+
return intval(round($stream->get('duration') * 1000));
3737
}
3838

3939
$format = $this->getFormat();
4040

4141
if ($format->has('duration')) {
42-
return $format->get('duration') * 1000;
42+
return intval(round($format->get('duration') * 1000));
4343
}
4444
}
4545

0 commit comments

Comments
 (0)