Skip to content

Commit f1a4e41

Browse files
author
Benoit VRIGNAUD
committed
Fix form_hidden declaration
Signed-off-by: Benoit VRIGNAUD <benoit.vrignaud@zaclys.net>
1 parent a384868 commit f1a4e41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Helpers/form_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ function form_open_multipart(string $action = '', $attributes = [], array $hidde
144144
* Generates hidden fields. You can pass a simple key/value string or
145145
* an associative array with multiple values.
146146
*
147-
* @param mixed $name Field name
147+
* @param string|array $name Field name or associative array to create multiple fields
148148
* @param string|array $value Field value
149149
* @param bool $recursing
150150
*
151151
* @return string
152152
*/
153-
function form_hidden($name, $value, bool $recursing = false): string
153+
function form_hidden($name, $value = '', bool $recursing = false): string
154154
{
155155
static $form;
156156

0 commit comments

Comments
 (0)