Remove implicit cast from float to int.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-12 08:35:07 -06:00
parent 8042fa9025
commit a1a037e7ac
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class PodcastMedia implements IdentifiableEntityInterface
public function setLength(float $length): self
{
$lengthMin = floor($length / 60);
$lengthSec = $length % 60;
$lengthSec = (int)$length % 60;
$this->length = $length;
$this->length_text = $lengthMin . ':' . str_pad((string)$lengthSec, 2, '0', STR_PAD_LEFT);