Skip to content

Commit

Permalink
Merge pull request #163 from justindantzer/patch-handle
Browse files Browse the repository at this point in the history
Incorrect handle() return type on actions
  • Loading branch information
patrickbrouwers committed May 5, 2023
2 parents 2fd8390 + 0448725 commit 3027cfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Actions/DownloadExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function name()
/**
* @param ActionRequest $request
* @param Action $exportable
* @return array
* @return mixed
*/
public function handle(ActionRequest $request, Action $exportable): array
public function handle(ActionRequest $request, Action $exportable)
{
if (config('excel.temporary_files.remote_disk')) {
return $this->handleRemoteDisk($request, $exportable);
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/ExportToExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public function handleRequest(ActionRequest $request)
/**
* @param ActionRequest $request
* @param Action $exportable
* @return array
* @return mixed
*/
public function handle(ActionRequest $request, Action $exportable): array
public function handle(ActionRequest $request, Action $exportable)
{
$response = Excel::store(
$exportable,
Expand Down

0 comments on commit 3027cfe

Please sign in to comment.