From 02ed87269fb969e4710b927d20cf6e92f615c9ac Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Wed, 20 Dec 2023 11:45:13 +0100 Subject: [PATCH] fix(clientHelper): http exception message and code can not be null (#686) Co-authored-by: David mattei --- .../src/Helper/Elasticsearch/ClientRequestRuntime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMS/client-helper-bundle/src/Helper/Elasticsearch/ClientRequestRuntime.php b/EMS/client-helper-bundle/src/Helper/Elasticsearch/ClientRequestRuntime.php index 2b6f90e82..350e49cce 100644 --- a/EMS/client-helper-bundle/src/Helper/Elasticsearch/ClientRequestRuntime.php +++ b/EMS/client-helper-bundle/src/Helper/Elasticsearch/ClientRequestRuntime.php @@ -62,7 +62,7 @@ public function searchOne(null|string|array $type, array $body, ?string $indexRe /** * @param mixed[] $headers */ - public function httpException(int $statusCode, ?string $message = '', array $headers = [], ?int $code = 0): never + public function httpException(int $statusCode, string $message = '', array $headers = [], int $code = 0): never { throw new HttpException($statusCode, $message, null, $headers, $code); }