diff --git a/app/Form/Actions/CreateExcelDocumentAction.php b/app/Form/Actions/CreateExcelDocumentAction.php index 1f8b006c..341cad7b 100644 --- a/app/Form/Actions/CreateExcelDocumentAction.php +++ b/app/Form/Actions/CreateExcelDocumentAction.php @@ -15,6 +15,9 @@ class CreateExcelDocumentAction public Form $form; + /** + * @param Collection $participants + */ public function handle(Form $form, Collection $participants): string { $this->form = $form; diff --git a/app/Prevention/Enums/Prevention.php b/app/Prevention/Enums/Prevention.php index 01352bf8..7754114c 100644 --- a/app/Prevention/Enums/Prevention.php +++ b/app/Prevention/Enums/Prevention.php @@ -4,6 +4,7 @@ namespace App\Prevention\Enums; use App\Member\Member; use Carbon\Carbon; +use Illuminate\Support\Collection; enum Prevention { @@ -39,8 +40,9 @@ enum Prevention /** * @param array $preventions + * @return Collection */ - public static function items(array $preventions) + public static function items(array $preventions): Collection { return collect(static::cases())->map(fn ($case) => [ 'letter' => $case->letter(),