Skip to content

Commit

Permalink
Fix Phan
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Dec 21, 2024
1 parent b02c35c commit 167ec9b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/Nova/Actions/MatrixAirfareSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions app/Nova/Lenses/RecentInactiveUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions app/Nova/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public static function scoutQuery(NovaRequest $request, $query): Builder

/**
* Timestamp fields.
*
* @phan-suppress PhanTypeInvalidCallableMethodName
*/
protected static function metadataPanel(): Panel
{
Expand Down
2 changes: 1 addition & 1 deletion app/Nova/Travel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion app/Nova/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions app/Nova/WebhookCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class WebhookCall extends Resource

/**
* Get the fields displayed by the resource.
*
* @phan-suppress PhanTypeInvalidCallableMethodName
*/
public function fields(NovaRequest $request): array
{
Expand Down

0 comments on commit 167ec9b

Please sign in to comment.