From 8b7b9aa077c7cdc6fb7de132454abd2df9cedee5 Mon Sep 17 00:00:00 2001 From: Steel Wagstaff Date: Wed, 20 May 2026 14:39:19 -0700 Subject: [PATCH] Fix: Declare httpClient property to eliminate PHP 8.2 deprecation warning Adds explicit type declaration for the $httpClient property to prevent the "Creation of dynamic property" deprecation warning in PHP 8.2+. This property was previously assigned without declaration in the constructor, which triggers a deprecation warning. Declaring it as a typed property resolves this issue. --- src/Rest/Client.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rest/Client.php b/src/Rest/Client.php index acf2258..8249467 100644 --- a/src/Rest/Client.php +++ b/src/Rest/Client.php @@ -10,6 +10,8 @@ class Client { public const THOTH_EXPORT_BASE_URI = 'https://export.thoth.pub/'; + private HttpClient $httpClient; + public function __construct(array $httpConfig = []) { if (!isset($httpConfig['base_uri'])) {