Skip to content

Commit

Permalink
- Allowed null to seconds human readable
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed Jul 12, 2024
1 parent 00f42c5 commit ceae98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ));
Expand Down

0 comments on commit ceae98d

Please sign in to comment.