🆙 Fix more errors php stan 🆙

This commit is contained in:
Remco
2026-01-19 17:50:34 +01:00
parent 521f9c884c
commit 649f9f311d
26 changed files with 210 additions and 68 deletions
@@ -13,7 +13,7 @@ class LeaderboardController extends Controller
{
protected array $staffIds = [];
public function __construct(private readonly StaffService $staffService)
public function __construct(private readonly StaffService $staffService): void
{
$this->staffIds = $this->staffService->fetchEmployeeIds();
}
@@ -44,7 +44,7 @@ class LeaderboardController extends Controller
]);
}
private function retrieveSettings($column)
private function retrieveSettings(string $column): \Illuminate\Database\Eloquent\Collection
{
return UserSetting::select('user_id', $column)
->whereNotIn('user_id', $this->staffIds)