From 59e623c938be3dcd4953ce79007bd2f235a14e6c Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Mon, 5 Dec 2022 02:45:16 +0100 Subject: [PATCH] add function parameter types for form_spinner --- includes/sys_form.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/sys_form.php b/includes/sys_form.php index c7597d28..b25146af 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -20,13 +20,12 @@ function form_hidden($name, $value) * * @param string $name * @param string $label - * @param string $value + * @param float $value * @return string */ -function form_spinner($name, $label, $value) +function form_spinner(string $name, string $label, float $value) { $id = 'spinner-' . $name; - $value = htmlspecialchars((string)$value); return form_element($label, '