Skip to content

Commit 16a0028

Browse files
authoredMar 26, 2025
Merge pull request #12046 from notbakaneko/feature/fix-spotlight-factory-missing-state
Fix SpotlightFactory state return type
2 parents cf10c93 + 3f2223a commit 16a0028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎database/factories/SpotlightFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function bestof(): static
5353
{
5454
$chartMonth = Carbon::instance($this->faker->dateTimeBetween('-6 years'))->endOfYear();
5555

56-
return [
56+
return $this->state([
5757
'active' => true,
5858
'chart_month' => $chartMonth,
5959
'mode_specific' => true,
@@ -62,6 +62,6 @@ public function bestof(): static
6262
'acronym' => fn (array $attr) => "BEST{$attr['chart_month']->format('Y')}",
6363
'name' => fn (array $attr) => "Best of {$attr['chart_month']->format('Y')}",
6464
'start_date' => fn (array $attr) => $attr['chart_month']->copy()->addMonths(1)->addDays(rand(0, 27)),
65-
];
65+
]);
6666
}
6767
}

0 commit comments

Comments
 (0)