From 26de12971368c6b13a1008f788bd9ece919f8aa9 Mon Sep 17 00:00:00 2001 From: simonhammes Date: Wed, 17 Sep 2025 22:37:31 +0200 Subject: [PATCH] Fix deprecation notice on PHP 8.4 --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 20bd9b9..a8789fc 100644 --- a/src/Client.php +++ b/src/Client.php @@ -42,11 +42,11 @@ class Client * debug => true, * ]; * - * @param HTTPClientInterface $client Optional, pass in custom HTTP client. + * @param ?HTTPClientInterface $client Optional, pass in custom HTTP client. * * @return Object Client object */ - public function __construct( array $options = [], HTTPClientInterface $client = null) + public function __construct( array $options = [], ?HTTPClientInterface $client = null) { $this->options = $options; $this->http_client = $client ?? new HTTPClient($options);