Skip to content

Commit

Permalink
Update Action::fields() typehint.
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Jan 4, 2022
1 parent 891c21d commit 1447e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Actions/ExportToExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Laravel\Nova\Fields\Field;
use Laravel\Nova\Fields\Gravatar;
use Laravel\Nova\Http\Requests\ActionRequest;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Nova;
use Laravel\Nova\Resource;
use Maatwebsite\Excel\Concerns\FromQuery;
Expand Down Expand Up @@ -159,9 +160,10 @@ public function query()
}

/**
* @param NovaRequest $request
* @return Field[]
*/
public function fields()
public function fields(NovaRequest $request)
{
return $this->actionFields;
}
Expand Down

0 comments on commit 1447e75

Please sign in to comment.