Skip to content

Commit c48612e

Browse files
author
Pantea Marius-ciclistu
committed
Fix exception responses
1 parent f45174d commit c48612e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Middleware/Decorators/AbstractDecoratorMiddleware.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Closure;
66
use Illuminate\Http\JsonResponse;
77
use Illuminate\Http\Request;
8+
use Illuminate\Http\Response;
89
use MacropaySolutions\LaravelCrudWizard\Helpers\GeneralHelper;
910
use MacropaySolutions\LaravelCrudWizard\Models\BaseModel;
1011
use MacropaySolutions\LaravelCrudWizardDecorator\Decorators\AbstractResourceDecorator;
@@ -53,7 +54,7 @@ public function handle(
5354
Request $request,
5455
Closure $next,
5556
string $method
56-
): JsonResponse|BinaryFileResponse|StreamedResponse {
57+
): JsonResponse|BinaryFileResponse|StreamedResponse|Response {
5758
if (!\in_array($method, static::METHODS, true)) {
5859
throw new \Exception('Development error: method not in: ' . \implode(', ', static::METHODS));
5960
}

0 commit comments

Comments
 (0)