lint
This commit is contained in:
parent
ae19a6ed2b
commit
e005ed0d0d
|
@ -53,7 +53,7 @@ class FormFactory extends Factory
|
||||||
*/
|
*/
|
||||||
public function sections(array $sections): self
|
public function sections(array $sections): self
|
||||||
{
|
{
|
||||||
return $this->state(['config' => ['sections' => $sections]]);
|
return $this->state(['config' => ['sections' => array_map(fn ($section) => $section->create(), $sections)]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue