add function parameter types for form_spinner

This commit is contained in:
Thomas Rupprecht 2022-12-05 02:45:16 +01:00 committed by Michael Weimann
parent fbe52117ed
commit 59e623c938
1 changed files with 2 additions and 3 deletions

View File

@ -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, '
<div class="input-group">