From 465d655f697876496fc2a2fc13b4f4cda50a2d5f Mon Sep 17 00:00:00 2001 From: John Charman Date: Thu, 8 Dec 2022 10:44:06 +0000 Subject: [PATCH] RequestValidation return type changed to SymfonyResponse --- src/Middleware/RequestValidation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Middleware/RequestValidation.php b/src/Middleware/RequestValidation.php index 0fbde08..3477554 100644 --- a/src/Middleware/RequestValidation.php +++ b/src/Middleware/RequestValidation.php @@ -6,12 +6,12 @@ use Closure; use Illuminate\Http\Request; -use Illuminate\Http\Response; use Membrane\Laravel\Http\Request as MembraneHttpRequest; use Membrane\Laravel\Http\Response as MembraneHttpResponse; use Membrane\Laravel\ToPsr7; use Membrane\Membrane; use Membrane\OpenAPI\Specification\Request as MembraneRequestSpec; +use Symfony\Component\HttpFoundation\Response as SymfonyResponse; class RequestValidation { @@ -25,7 +25,7 @@ public function __construct( $this->toPsr7 = new ToPsr7(); } - public function handle(Request $request, Closure $next): Response + public function handle(Request $request, Closure $next): SymfonyResponse { $psr7Request = ($this->toPsr7)($request);