From e005ed0d0dc69b8ef50c158b62187a25c4ddefdd Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 10 Jan 2024 22:14:27 +0100 Subject: [PATCH] lint --- database/factories/Form/Models/FormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/Form/Models/FormFactory.php b/database/factories/Form/Models/FormFactory.php index 05c6ef16..e7d3d8fb 100644 --- a/database/factories/Form/Models/FormFactory.php +++ b/database/factories/Form/Models/FormFactory.php @@ -53,7 +53,7 @@ class FormFactory extends Factory */ public function sections(array $sections): self { - return $this->state(['config' => ['sections' => $sections]]); + return $this->state(['config' => ['sections' => array_map(fn ($section) => $section->create(), $sections)]]); } /**