Skip to content

Commit fef6ce9

Browse files
committed
Revert small BC break
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 7d408e3 commit fef6ce9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LogErrorHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
8585
* If a valid Logger is available, the error, and it's message are logged in the
8686
* configured format.
8787
*/
88-
public function handleThrowable(Throwable $throwable, ServerRequestInterface $request): ResponseInterface
88+
public function handleThrowable(Throwable $e, ServerRequestInterface $request): ResponseInterface
8989
{
9090
$generator = $this->responseGenerator;
9191
if ($this->logger instanceof LoggerInterface) {
92-
$this->logger->err($throwable->getMessage(), $this->prepareExtra($throwable, $request));
92+
$this->logger->err($e->getMessage(), $this->prepareExtra($e, $request));
9393
}
9494

95-
$response = $generator($throwable, $request, ($this->responseFactory)());
96-
$this->triggerListeners($throwable, $request, $response);
95+
$response = $generator($e, $request, ($this->responseFactory)());
96+
$this->triggerListeners($e, $request, $response);
9797

9898
return $response;
9999
}

0 commit comments

Comments
 (0)