Skip to content

Commit

Permalink
$shouldHandle → $hasStaticResponseMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Oct 27, 2023
1 parent 9732cad commit 2769510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Middleware/PreventStaticResponseMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public function handle(Request $request, Closure $next)

$route = Route::current();

$shouldHandle = in_array(
$hasStaticResponseMiddleware = in_array(
StaticResponse::class,
Route::gatherRouteMiddleware($route),
);

if (! $shouldHandle) {
if (! $hasStaticResponseMiddleware) {
return response(status: 200);
}

Expand Down

0 comments on commit 2769510

Please sign in to comment.