@@ -32,7 +32,7 @@ class Kohana_Form {
3232 * @uses URL::site
3333 * @uses HTML::attributes
3434 */
35- public static function open ($ action = NULL , array $ attributes = NULL )
35+ public static function open ($ action = NULL , array $ attributes = [] )
3636 {
3737 if ($ action instanceof Request)
3838 {
@@ -90,7 +90,7 @@ public static function close()
9090 * @return string
9191 * @uses HTML::attributes
9292 */
93- public static function input ($ name , $ value = NULL , array $ attributes = NULL )
93+ public static function input ($ name , $ value = NULL , ? array $ attributes = [] )
9494 {
9595 // Set the input name
9696 $ attributes ['name ' ] = $ name ;
@@ -118,7 +118,7 @@ public static function input($name, $value = NULL, array $attributes = NULL)
118118 * @return string
119119 * @uses Form::input
120120 */
121- public static function hidden ($ name , $ value = NULL , array $ attributes = NULL )
121+ public static function hidden ($ name , $ value = NULL , array $ attributes = [] )
122122 {
123123 $ attributes ['type ' ] = 'hidden ' ;
124124
@@ -136,7 +136,7 @@ public static function hidden($name, $value = NULL, array $attributes = NULL)
136136 * @return string
137137 * @uses Form::input
138138 */
139- public static function password ($ name , $ value = NULL , array $ attributes = NULL )
139+ public static function password ($ name , $ value = NULL , array $ attributes = [] )
140140 {
141141 $ attributes ['type ' ] = 'password ' ;
142142
@@ -153,7 +153,7 @@ public static function password($name, $value = NULL, array $attributes = NULL)
153153 * @return string
154154 * @uses Form::input
155155 */
156- public static function file ($ name , array $ attributes = NULL )
156+ public static function file ($ name , array $ attributes = [] )
157157 {
158158 $ attributes ['type ' ] = 'file ' ;
159159
@@ -172,7 +172,7 @@ public static function file($name, array $attributes = NULL)
172172 * @return string
173173 * @uses Form::input
174174 */
175- public static function checkbox ($ name , $ value = NULL , $ checked = FALSE , array $ attributes = NULL )
175+ public static function checkbox ($ name , $ value = NULL , $ checked = FALSE , array $ attributes = [] )
176176 {
177177 $ attributes ['type ' ] = 'checkbox ' ;
178178
@@ -198,7 +198,7 @@ public static function checkbox($name, $value = NULL, $checked = FALSE, array $a
198198 * @return string
199199 * @uses Form::input
200200 */
201- public static function radio ($ name , $ value = NULL , $ checked = FALSE , array $ attributes = NULL )
201+ public static function radio ($ name , $ value = NULL , $ checked = FALSE , array $ attributes = [] )
202202 {
203203 $ attributes ['type ' ] = 'radio ' ;
204204
@@ -224,7 +224,7 @@ public static function radio($name, $value = NULL, $checked = FALSE, array $attr
224224 * @uses HTML::attributes
225225 * @uses HTML::chars
226226 */
227- public static function textarea ($ name , $ body = '' , array $ attributes = NULL , $ double_encode = TRUE )
227+ public static function textarea ($ name , $ body = '' , ? array $ attributes = [] , $ double_encode = TRUE )
228228 {
229229 // Set the input name
230230 $ attributes ['name ' ] = $ name ;
@@ -249,7 +249,7 @@ public static function textarea($name, $body = '', array $attributes = NULL, $do
249249 * @return string
250250 * @uses HTML::attributes
251251 */
252- public static function select ($ name , array $ options = NULL , $ selected = NULL , array $ attributes = NULL )
252+ public static function select ($ name , ? array $ options = NULL , $ selected = NULL , array $ attributes = [] )
253253 {
254254 // Set the input name
255255 $ attributes ['name ' ] = $ name ;
@@ -351,7 +351,7 @@ public static function select($name, array $options = NULL, $selected = NULL, ar
351351 * @return string
352352 * @uses Form::input
353353 */
354- public static function submit ($ name , $ value , array $ attributes = NULL )
354+ public static function submit ($ name , $ value , array $ attributes = [] )
355355 {
356356 $ attributes ['type ' ] = 'submit ' ;
357357
@@ -370,7 +370,7 @@ public static function submit($name, $value, array $attributes = NULL)
370370 * @return string
371371 * @uses Form::input
372372 */
373- public static function image ($ name , $ value , array $ attributes = NULL , $ index = FALSE )
373+ public static function image ($ name , $ value , ? array $ attributes = [] , $ index = FALSE )
374374 {
375375 if ( ! empty ($ attributes ['src ' ]))
376376 {
@@ -398,7 +398,7 @@ public static function image($name, $value, array $attributes = NULL, $index = F
398398 * @return string
399399 * @uses HTML::attributes
400400 */
401- public static function button ($ name , $ body , array $ attributes = NULL )
401+ public static function button ($ name , $ body , array $ attributes = [] )
402402 {
403403 // Set the input name
404404 $ attributes ['name ' ] = $ name ;
@@ -417,7 +417,7 @@ public static function button($name, $body, array $attributes = NULL)
417417 * @return string
418418 * @uses HTML::attributes
419419 */
420- public static function label ($ input , $ text = NULL , array $ attributes = NULL )
420+ public static function label ($ input , $ text = NULL , array $ attributes = [] )
421421 {
422422 if ($ text === NULL )
423423 {
0 commit comments