@@ -273,7 +273,7 @@ public function withoutCsrf(bool $inject_token = false): static
273273 *
274274 * @return HtmlString|string
275275 */
276- public function label (string $ name , string $ value = null , array |null $ options = [], bool |null $ escape_html = true ): HtmlString |string
276+ public function label (string $ name , string | null $ value = null , array |null $ options = [], bool |null $ escape_html = true ): HtmlString |string
277277 {
278278 $ this ->labels [] = $ name ;
279279
@@ -311,7 +311,7 @@ protected function formatLabel(string $name, ?string $value): string
311311 *
312312 * @return string|HtmlString
313313 */
314- public function input (string $ type , string |null $ name , string $ value = null , array $ options = []): string |HtmlString
314+ public function input (string $ type , string |null $ name , string | null $ value = null , array $ options = []): string |HtmlString
315315 {
316316 $ this ->type = $ type ;
317317
@@ -347,7 +347,7 @@ public function input(string $type, string|null $name, string $value = null, arr
347347 *
348348 * @return string|HtmlString
349349 */
350- public function text (string $ name , string $ value = null , array $ options = []): string |HtmlString
350+ public function text (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
351351 {
352352 return $ this ->input ('text ' , $ name , $ value , $ options );
353353 }
@@ -374,7 +374,7 @@ public function password(string $name, array $options = []): string|HtmlString
374374 *
375375 * @return string|HtmlString
376376 */
377- public function range (string $ name , string $ value = null , array $ options = []): string |HtmlString
377+ public function range (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
378378 {
379379 return $ this ->input ('range ' , $ name , $ value , $ options );
380380 }
@@ -388,7 +388,7 @@ public function range(string $name, string $value = null, array $options = []):
388388 *
389389 * @return string|HtmlString
390390 */
391- public function hidden (string $ name , string $ value = null , array $ options = []): string |HtmlString
391+ public function hidden (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
392392 {
393393 return $ this ->input ('hidden ' , $ name , $ value , $ options );
394394 }
@@ -402,7 +402,7 @@ public function hidden(string $name, string $value = null, array $options = []):
402402 *
403403 * @return string|HtmlString
404404 */
405- public function search (string $ name , string $ value = null , array $ options = []): string |HtmlString
405+ public function search (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
406406 {
407407 return $ this ->input ('search ' , $ name , $ value , $ options );
408408 }
@@ -416,7 +416,7 @@ public function search(string $name, string $value = null, array $options = []):
416416 *
417417 * @return string|HtmlString
418418 */
419- public function email (string $ name , string $ value = null , array $ options = []): string |HtmlString
419+ public function email (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
420420 {
421421 return $ this ->input ('email ' , $ name , $ value , $ options );
422422 }
@@ -430,7 +430,7 @@ public function email(string $name, string $value = null, array $options = []):
430430 *
431431 * @return string|HtmlString
432432 */
433- public function tel (string $ name , string $ value = null , array $ options = []): string |HtmlString
433+ public function tel (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
434434 {
435435 return $ this ->input ('tel ' , $ name , $ value , $ options );
436436 }
@@ -444,7 +444,7 @@ public function tel(string $name, string $value = null, array $options = []): st
444444 *
445445 * @return string|HtmlString
446446 */
447- public function number (string $ name , string $ value = null , array $ options = []): string |HtmlString
447+ public function number (string $ name , string | null $ value = null , array $ options = []): string |HtmlString
448448 {
449449 return $ this ->input ('number ' , $ name , $ value , $ options );
450450 }
@@ -458,7 +458,7 @@ public function number(string $name, string $value = null, array $options = []):
458458 *
459459 * @return string|HtmlString
460460 */
461- public function date (string $ name , string |DateTimeInterface $ value = null , array $ options = []): string |HtmlString
461+ public function date (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): string |HtmlString
462462 {
463463 $ value ??= $ this ->getValueAttribute ($ name , $ value );
464464
@@ -478,7 +478,7 @@ public function date(string $name, string|DateTimeInterface $value = null, array
478478 *
479479 * @return HtmlString|string
480480 */
481- public function datetime (string $ name , string |DateTimeInterface $ value = null , array $ options = []): HtmlString |string
481+ public function datetime (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): HtmlString |string
482482 {
483483 if ($ value instanceof DateTimeInterface) {
484484 $ value = $ value ->format (DateTimeInterface::RFC3339 );
@@ -497,7 +497,7 @@ public function datetime(string $name, string|DateTimeInterface $value = null, a
497497 * @return HtmlString|string
498498 * @noinspection PhpUnused
499499 */
500- public function datetimeLocal (string $ name , string |DateTimeInterface $ value = null , array $ options = []): HtmlString |string
500+ public function datetimeLocal (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): HtmlString |string
501501 {
502502 if ($ value instanceof DateTimeInterface) {
503503 $ value = $ value ->format ('Y-m-d\TH:i ' );
@@ -515,7 +515,7 @@ public function datetimeLocal(string $name, string|DateTimeInterface $value = nu
515515 *
516516 * @return HtmlString|string
517517 */
518- public function time (string $ name , string |DateTimeInterface $ value = null , array $ options = []): HtmlString |string
518+ public function time (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): HtmlString |string
519519 {
520520 if ($ value instanceof DateTimeInterface) {
521521 $ value = $ value ->format ('H:i ' );
@@ -533,7 +533,7 @@ public function time(string $name, string|DateTimeInterface $value = null, array
533533 *
534534 * @return HtmlString|string
535535 */
536- public function url (string $ name , string $ value = null , array $ options = []): HtmlString |string
536+ public function url (string $ name , string | null $ value = null , array $ options = []): HtmlString |string
537537 {
538538 return $ this ->input ('url ' , $ name , $ value , $ options );
539539 }
@@ -547,7 +547,7 @@ public function url(string $name, string $value = null, array $options = []): Ht
547547 *
548548 * @return HtmlString|string
549549 */
550- public function week (string $ name , string |DateTimeInterface $ value = null , array $ options = []): HtmlString |string
550+ public function week (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): HtmlString |string
551551 {
552552 if ($ value instanceof DateTimeInterface) {
553553 $ value = $ value ->format ('Y-\WW ' );
@@ -578,7 +578,7 @@ public function file(string $name, array $options = []): HtmlString|string
578578 *
579579 * @return HtmlString|string
580580 */
581- public function textarea (string $ name , string $ value = null , array $ options = []): HtmlString |string
581+ public function textarea (string $ name , string | null $ value = null , array $ options = []): HtmlString |string
582582 {
583583 $ this ->type = 'textarea ' ;
584584
@@ -659,7 +659,7 @@ protected function setQuickTextAreaSize(array $options): array
659659 public function select (
660660 string $ name ,
661661 array |Collection $ list = [],
662- bool |string |array |Collection $ selected = null ,
662+ bool |string |array |Collection | null $ selected = null ,
663663 array $ selectAttributes = [],
664664 array $ optionsAttributes = [],
665665 array $ optgroupsAttributes = []
@@ -717,7 +717,7 @@ public function select(
717717 *
718718 * @return HtmlString|string
719719 */
720- public function selectRange (string $ name , string $ begin , string $ end , string $ selected = null , array $ options = []): HtmlString |string
720+ public function selectRange (string $ name , string $ begin , string $ end , string | null $ selected = null , array $ options = []): HtmlString |string
721721 {
722722 $ range = array_combine ($ range = range ($ begin , $ end ), $ range );
723723
@@ -735,7 +735,7 @@ public function selectRange(string $name, string $begin, string $end, string $se
735735 *
736736 * @return mixed
737737 */
738- public function selectYear (string $ name , string $ begin , string $ end , string $ selected = null , array $ options = null ): mixed
738+ public function selectYear (string $ name , string $ begin , string $ end , string | null $ selected = null , array | null $ options = null ): mixed
739739 {
740740 return call_user_func_array ([$ this , 'selectRange ' ], func_get_args ());
741741 }
@@ -750,7 +750,7 @@ public function selectYear(string $name, string $begin, string $end, string $sel
750750 *
751751 * @return HtmlString|string
752752 */
753- public function selectMonth (string $ name , string $ selected = null , array $ options = [], string $ format = 'F ' ): HtmlString |string
753+ public function selectMonth (string $ name , string | null $ selected = null , array $ options = [], string $ format = 'F ' ): HtmlString |string
754754 {
755755 $ months = [];
756756
@@ -898,7 +898,7 @@ public function checkbox(string $name, mixed $value = 1, bool|null $checked = nu
898898 *
899899 * @return HtmlString|string
900900 */
901- public function radio (string $ name , mixed $ value = null , bool $ checked = null , array $ options = []): HtmlString |string
901+ public function radio (string $ name , mixed $ value = null , bool | null $ checked = null , array $ options = []): HtmlString |string
902902 {
903903 if (is_null ($ value )) {
904904 $ value = $ name ;
@@ -1050,7 +1050,7 @@ public function reset(string $value, array $attributes = []): HtmlString|string
10501050 *
10511051 * @return HtmlString|string
10521052 */
1053- public function image (string $ url , string $ name = null , array $ attributes = []): HtmlString |string
1053+ public function image (string $ url , string | null $ name = null , array $ attributes = []): HtmlString |string
10541054 {
10551055 $ attributes ['src ' ] = $ this ->url ->asset ($ url );
10561056
@@ -1066,7 +1066,7 @@ public function image(string $url, string $name = null, array $attributes = []):
10661066 *
10671067 * @return HtmlString|string
10681068 */
1069- public function month (string $ name , string |DateTimeInterface $ value = null , array $ options = []): HtmlString |string
1069+ public function month (string $ name , string |DateTimeInterface | null $ value = null , array $ options = []): HtmlString |string
10701070 {
10711071 if ($ value instanceof DateTimeInterface) {
10721072 $ value = $ value ->format ('Y-m ' );
@@ -1084,7 +1084,7 @@ public function month(string $name, string|DateTimeInterface $value = null, arra
10841084 *
10851085 * @return HtmlString|string
10861086 */
1087- public function color (string $ name , string $ value = null , array $ options = []): HtmlString |string
1087+ public function color (string $ name , string | null $ value = null , array $ options = []): HtmlString |string
10881088 {
10891089 return $ this ->input ('color ' , $ name , $ value , $ options );
10901090 }
@@ -1097,7 +1097,7 @@ public function color(string $name, string $value = null, array $options = []):
10971097 *
10981098 * @return HtmlString|string
10991099 */
1100- public function submit (string $ value = null , array $ options = []): HtmlString |string
1100+ public function submit (string | null $ value = null , array $ options = []): HtmlString |string
11011101 {
11021102 return $ this ->input ('submit ' , null , $ value , $ options );
11031103 }
@@ -1110,7 +1110,7 @@ public function submit(string $value = null, array $options = []): HtmlString|st
11101110 *
11111111 * @return HtmlString|string
11121112 */
1113- public function button (string $ value = null , array $ options = []): HtmlString |string
1113+ public function button (string | null $ value = null , array $ options = []): HtmlString |string
11141114 {
11151115 if (! array_key_exists ('type ' , $ options )) {
11161116 $ options ['type ' ] = 'button ' ;
0 commit comments