Skip to content

Commit 227b5b3

Browse files
authored
Merge pull request #1245 from bvrignaud/develop
Fix #1244 (form_hidden declaration)
2 parents f17ad0a + f1a4e41 commit 227b5b3

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)