Skip to content

Commit 1d55ab1

Browse files
authored
Update AsController.php (lorisleiva#215)
* Update AsController.php Using LaravelActions with dingo API causes an exception, as it calls getMiddleware(), which expects an array when using array_merge. * Updated doc blocks to array
1 parent 0f765b3 commit 1d55ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/AsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public function __invoke(...$arguments)
1717
/**
1818
* This empty method is required to enable controller middleware on the action.
1919
* @see https://github.com/lorisleiva/laravel-actions/issues/199
20-
* @return void
20+
* @return array
2121
*/
2222
public function getMiddleware()
2323
{
24-
// ...
24+
return [];
2525
}
2626
}

0 commit comments

Comments
 (0)