Skip to content

Commit

Permalink
fix(clientHelper): http exception message and code can not be null (e…
Browse files Browse the repository at this point in the history
…ms-project#686)

Co-authored-by: David mattei <[email protected]>
  • Loading branch information
theus77 and Davidmattei authored Dec 20, 2023
1 parent 81cc229 commit 02ed872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 02ed872

Please sign in to comment.