File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,15 +230,15 @@ public function labels(bool $labels): self
230
230
231
231
public function sectionVisibility ($ fields , bool $ hidden ): self
232
232
{
233
- Collection::wrap (is_string ($ fields ) ? func_get_args () : $ fields )
233
+ Collection::wrap (is_string ($ fields ) ? [ $ fields ] : $ fields )
234
234
->each (fn ($ field ) => $ this ->section ($ field )->put ('hidden ' , $ hidden ));
235
235
236
236
return $ this ;
237
237
}
238
238
239
239
public function tabVisibility ($ tabs , bool $ hidden ): self
240
240
{
241
- $ tabs = Collection::wrap (is_string ($ tabs ) ? func_get_args () : $ tabs );
241
+ $ tabs = Collection::wrap (is_string ($ tabs ) ? [ $ tabs ] : $ tabs );
242
242
243
243
$ this ->template ->get ('sections ' )->each (fn ($ section ) => $ tabs ->when (
244
244
$ tabs ->contains ($ section ->get ('tab ' )),
You can’t perform that action at this time.
0 commit comments