Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Dec 30, 2024
1 parent b72dac6 commit 625cd98
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Middleware/SlimCallbackMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
return ($this->slimCallable)(
$request,
$this->getResponse($request),
static function (ServerRequestInterface $request, ResponseInterface $response) use ($handler) {
return $handler->handle(
$request->withAttribute(self::ATTRIBUTE_RESPONSE, $response)
);
}
static fn (ServerRequestInterface $request, ResponseInterface $response) => $handler->handle(
$request->withAttribute(self::ATTRIBUTE_RESPONSE, $response)
)
);
}

Expand Down

0 comments on commit 625cd98

Please sign in to comment.