diff --git a/src/helpers.php b/src/helpers.php index 7229e0b..3143423 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -823,9 +823,9 @@ function is_admin_portal(): string * @param int $seconds * @return string */ - function seconds_to_human_readable(int $seconds, bool $abbreviated = false, bool $include_zero_units = true): string + function seconds_to_human_readable($seconds, bool $abbreviated = false, bool $include_zero_units = true): string { - $seconds_remaining = $seconds; + $seconds_remaining = (int) $seconds; $output = []; $years = floor($seconds_remaining / (365 * 24 * 60 * 60 ));