File tree 1 file changed +3
-22
lines changed 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -301,13 +301,7 @@ public function multiple(Closure|bool $multiple = true): static
301
301
302
302
public function prepend (Closure |array |null $ prepend = null ): static
303
303
{
304
- $ this ->prepend = $ this ->evaluate ($ prepend );
305
-
306
- if (is_array ($ this ->prepend ) && isset ($ this ->prepend ['name ' ], $ this ->prepend ['value ' ])) {
307
- $ this ->prepend ['value ' ] = (string ) $ this ->prepend ['value ' ];
308
- } else {
309
- throw new \InvalidArgumentException ('The provided prepend value must be an array with "name" and "value" keys. ' );
310
- }
304
+ $ this ->prepend = $ prepend ;
311
305
312
306
return $ this ;
313
307
}
@@ -447,11 +441,9 @@ public function getIndependent(): bool
447
441
return $ this ->evaluate ($ this ->independent );
448
442
}
449
443
450
- public function getCustomKey ($ record ): string
444
+ public function getCustomKey ($ record )
451
445
{
452
- $ key = is_null ($ this ->customKey ) ? $ record ->getKey () : $ record ->{$ this ->customKey };
453
-
454
- return (string ) $ key ;
446
+ return is_null ($ this ->customKey ) ? $ record ->getKey () : $ record ->{$ this ->customKey };
455
447
}
456
448
457
449
public function getWithCount (): bool
@@ -622,15 +614,4 @@ public function createOptionModalHeading(string|Closure|null $heading): static
622
614
623
615
return $ this ;
624
616
}
625
-
626
- public function getState (): mixed
627
- {
628
- $ state = parent ::getState ();
629
-
630
- if (is_array ($ state )) {
631
- return array_map (fn ($ value ) => (string ) $ value , $ state );
632
- }
633
-
634
- return (string ) $ state ;
635
- }
636
617
}
You can’t perform that action at this time.
0 commit comments