🆙 Fix more errors php stan 🆙

This commit is contained in:
Remco committed 2026-01-19 17:50:34 +01:00
1 parent 521f9c884c
commit 649f9f311d
26 files changed
+210 -68

No files matched your search

@@ -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)