From 167ec9bd821bf8861fb94ea2488427c8b9479706 Mon Sep 17 00:00:00 2001 From: Kristaps Berzinch Date: Sat, 21 Dec 2024 16:06:19 -0600 Subject: [PATCH] Fix Phan --- app/Nova/Actions/MatrixAirfareSearch.php | 2 -- app/Nova/Lenses/RecentInactiveUsers.php | 2 ++ app/Nova/Resource.php | 2 ++ app/Nova/Travel.php | 2 +- app/Nova/User.php | 2 +- app/Nova/WebhookCall.php | 2 ++ 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/Nova/Actions/MatrixAirfareSearch.php b/app/Nova/Actions/MatrixAirfareSearch.php index 47938b1d5..089d6f41f 100644 --- a/app/Nova/Actions/MatrixAirfareSearch.php +++ b/app/Nova/Actions/MatrixAirfareSearch.php @@ -149,8 +149,6 @@ public function handle(ActionFields $fields, Collection $models): ActionResponse * Get the fields available on the action. * * @return array<\Laravel\Nova\Fields\Field> - * - * @phan-suppress PhanTypeInvalidCallableArraySize */ public function fields(NovaRequest $request): array { diff --git a/app/Nova/Lenses/RecentInactiveUsers.php b/app/Nova/Lenses/RecentInactiveUsers.php index c2f7fa25b..6786f7802 100644 --- a/app/Nova/Lenses/RecentInactiveUsers.php +++ b/app/Nova/Lenses/RecentInactiveUsers.php @@ -31,6 +31,8 @@ class RecentInactiveUsers extends Lens * * @param \Illuminate\Database\Eloquent\Builder<\App\Models\Attendance> $query * @return \Illuminate\Database\Eloquent\Builder<\App\Models\Attendance> + * + * @phan-suppress PhanTypeMismatchReturnSuperType */ public static function query(LensRequest $request, $query): Builder { diff --git a/app/Nova/Resource.php b/app/Nova/Resource.php index 84d940d9e..a0fd1cddd 100644 --- a/app/Nova/Resource.php +++ b/app/Nova/Resource.php @@ -89,6 +89,8 @@ public static function scoutQuery(NovaRequest $request, $query): Builder /** * Timestamp fields. + * + * @phan-suppress PhanTypeInvalidCallableMethodName */ protected static function metadataPanel(): Panel { diff --git a/app/Nova/Travel.php b/app/Nova/Travel.php index 2d4489536..d539676a6 100644 --- a/app/Nova/Travel.php +++ b/app/Nova/Travel.php @@ -130,7 +130,7 @@ public static function uriKey(): string /** * Get the fields displayed by the resource. * - * @phan-suppress PhanTypeInvalidCallableArraySize + * @phan-suppress PhanInvalidFQSENInClasslike */ public function fields(Request $request): array { diff --git a/app/Nova/User.php b/app/Nova/User.php index c5e669dd6..056814480 100644 --- a/app/Nova/User.php +++ b/app/Nova/User.php @@ -107,7 +107,7 @@ class User extends Resource /** * Get the fields displayed by the resource. * - * @phan-suppress PhanTypeInvalidCallableArraySize + * @phan-suppress PhanTypeInvalidCallableMethodName */ public function fields(NovaRequest $request): array { diff --git a/app/Nova/WebhookCall.php b/app/Nova/WebhookCall.php index 36ffc43c6..745064ad6 100644 --- a/app/Nova/WebhookCall.php +++ b/app/Nova/WebhookCall.php @@ -53,6 +53,8 @@ class WebhookCall extends Resource /** * Get the fields displayed by the resource. + * + * @phan-suppress PhanTypeInvalidCallableMethodName */ public function fields(NovaRequest $request): array {