From a85a7edacc194ed23f4b2b791ad1f253de60a242 Mon Sep 17 00:00:00 2001 From: Felipe Martins <6557756+fefas@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:19:47 +0200 Subject: [PATCH] Resolve 'creation of dynamic propery' deprecated messages on Core\ApiClient Resolve issues exposed by deprecated messages introduced on PHP8.2 which indicate future breaking changes on the next major release cycle. - Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$error_on_idempotency_conflict is deprecated in //vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 28 - Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$http_client is deprecated in //vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 27 --- lib/Core/ApiClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Core/ApiClient.php b/lib/Core/ApiClient.php index b7cba642..7660ccfc 100644 --- a/lib/Core/ApiClient.php +++ b/lib/Core/ApiClient.php @@ -15,6 +15,9 @@ */ class ApiClient { + public $http_client; + public $error_on_idempotency_conflict; + /** * @param GuzzleHttp\ClientInterface $http_client An HTTP client to make requests * @param array $config configuration for the ApiClient