From 719b1920c9abb25960f6b4d565bfce541fd3ec97 Mon Sep 17 00:00:00 2001 From: philipp lang <philipp@aweos.de> Date: Sun, 30 Mar 2025 21:41:12 +0200 Subject: [PATCH] Lint --- app/Dav/Principal.php | 1 + app/Fee.php | 1 - app/Http/Middleware/Authenticate.php | 2 +- app/Lib/Filter.php | 4 ++-- app/Lib/ScoutFilter.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Dav/Principal.php b/app/Dav/Principal.php index 3ae9ccac..cf624056 100644 --- a/app/Dav/Principal.php +++ b/app/Dav/Principal.php @@ -129,6 +129,7 @@ class Principal implements PrincipalBackendInterface */ public function findByUri($uri, $principalPrefix) { + return null; } /** diff --git a/app/Fee.php b/app/Fee.php index c1eb9050..fee156e3 100644 --- a/app/Fee.php +++ b/app/Fee.php @@ -15,7 +15,6 @@ class Fee extends Model use HasFactory; use HasNamiField; - /** @var array<int, string> */ public $fillable = ['name', 'nami_id']; /** @var bool */ diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 2306b821..d24bc505 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -11,7 +11,7 @@ class Authenticate extends Middleware * * @param \Illuminate\Http\Request $request * - * @return string|null + * @return void */ protected function redirectTo($request) { diff --git a/app/Lib/Filter.php b/app/Lib/Filter.php index 6d2f7489..f7a556a0 100644 --- a/app/Lib/Filter.php +++ b/app/Lib/Filter.php @@ -8,7 +8,7 @@ use Spatie\LaravelData\Data; /** * @template T of Model - * @property Builder $query + * @property Builder<T> $query */ abstract class Filter extends Data { @@ -40,7 +40,7 @@ abstract class Filter extends Data } /** - * @return static(self<T>) + * @return static */ public function toDefault(): self { diff --git a/app/Lib/ScoutFilter.php b/app/Lib/ScoutFilter.php index ba8b602e..b512f407 100644 --- a/app/Lib/ScoutFilter.php +++ b/app/Lib/ScoutFilter.php @@ -8,7 +8,7 @@ use Spatie\LaravelData\Data; /** * @template T of Model - * @property Builder $query + * @property Builder<T> $query */ abstract class ScoutFilter extends Data {