diff --git a/controllers/front/webhook.php b/controllers/front/webhook.php index 6b245fe23..abca3b115 100644 --- a/controllers/front/webhook.php +++ b/controllers/front/webhook.php @@ -150,7 +150,7 @@ private function setContext(int $cartId): void $this->context->cart = $cart; } - private function handleException(\Throwable $exception, int $httpStatusCode, string $logMessage): void + private function handleException(Throwable $exception, int $httpStatusCode, string $logMessage): void { /** @var PrestaLoggerInterface $logger */ $logger = $this->module->getService(PrestaLoggerInterface::class); @@ -160,7 +160,7 @@ private function handleException(\Throwable $exception, int $httpStatusCode, str $logger->error($logMessage, [ 'Exception message' => $exception->getMessage(), - 'Exception code' => $httpStatusCode + 'Exception code' => $httpStatusCode, ]); $errorHandler->handle($exception, $httpStatusCode, false);