From cf5134798ae407911b8d8df29ebd153e604a160a Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Wed, 22 May 2024 21:20:56 +0100 Subject: [PATCH] Add type declaration --- web/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/functions.inc b/web/functions.inc index 1d4d96f3fc..5f0ac5a6ac 100644 --- a/web/functions.inc +++ b/web/functions.inc @@ -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)) {