Skip to content

Commit bf4d49b

Browse files
author
Pantea Marius-ciclistu
committed
Fix exception responses
1 parent bcc196c commit bf4d49b

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
@@ -47,13 +47,14 @@ public function setDecorator(AbstractResourceDecorator $decorator): void
4747
}
4848

4949
/**
50+
* @return JsonResponse|BinaryFileResponse|StreamedResponse|mixed
5051
* @throws \Exception
5152
*/
5253
public function handle(
5354
Request $request,
5455
Closure $next,
5556
string $method
56-
): JsonResponse|BinaryFileResponse|StreamedResponse {
57+
): mixed {
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)