Skip to content

Commit

Permalink
Add type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed May 22, 2024
1 parent d6e6262 commit cf51347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/functions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ function print_footer(bool $and_exit=false) : void
// is used to specify a maximum size of unit to use. For example if
// it is set to 'minutes', 3600 seconds will give 60 minutes rather
// than 1 hour.
function toTimeString(int &$dur, &$units, bool $translate=true, $max_unit=null)
function toTimeString(int &$dur, &$units, bool $translate=true, string $max_unit=null)
{
if (!isset($max_unit))
{
Expand Down

0 comments on commit cf51347

Please sign in to comment.