Skip to content

Commit

Permalink
RequestValidation return type changed to SymfonyResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
charjr committed Dec 15, 2022
1 parent 41eff07 commit 465d655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Middleware/RequestValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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);

Expand Down

0 comments on commit 465d655

Please sign in to comment.