diff --git a/app/Models/YearPeriod.php b/app/Models/YearPeriod.php index f58c408..5cc75a1 100644 --- a/app/Models/YearPeriod.php +++ b/app/Models/YearPeriod.php @@ -24,7 +24,7 @@ class YearPeriod extends Model public static function current(): ?static { - static::findByYear(Carbon::now()->year); + return static::findByYear(Carbon::now()->year); } public static function findByYear(int $year): ?static