From 5091ed58fe5b491a1a800dd33037bee3ca9890f0 Mon Sep 17 00:00:00 2001 From: "Ambient.Impact" Date: Thu, 15 Oct 2026 19:09:47 -0400 Subject: [PATCH] Issue #60: PHP 8.4 implicit nullable deprecation fixes. --- src/Client.php | 2 +- src/ReactFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 4287ccc..fac3532 100644 --- a/src/Client.php +++ b/src/Client.php @@ -26,7 +26,7 @@ class Client implements HttpClient, HttpAsyncClient * Initialize the React client. */ public function __construct( - ReactBrowser $client = null + ?ReactBrowser $client = null ) { $this->client = $client ?: ReactFactory::buildHttpClient(); } diff --git a/src/ReactFactory.php b/src/ReactFactory.php index 10059a6..3e274e8 100644 --- a/src/ReactFactory.php +++ b/src/ReactFactory.php @@ -19,7 +19,7 @@ class ReactFactory * behaviour */ public static function buildHttpClient( - ConnectorInterface $connector = null + ?ConnectorInterface $connector = null ): Browser { return (new Browser($connector)) ->withRejectErrorResponse(false)