From 012a0af21bad2b46a3c4f9fdf4fff3e6de4df7f8 Mon Sep 17 00:00:00 2001 From: Robert Brodie Date: Mon, 11 Nov 2024 11:06:46 -0500 Subject: [PATCH 1/4] SP-1095 Default to null --- phpdoc.dist.xml | 2 +- src/BitPaySDK/Env.php | 2 +- src/BitPaySDK/Util/RESTcli/RESTcli.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index bed634f7..0945df0a 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -10,7 +10,7 @@ docs - + src diff --git a/src/BitPaySDK/Env.php b/src/BitPaySDK/Env.php index 1c70a1dd..1b580bc8 100644 --- a/src/BitPaySDK/Env.php +++ b/src/BitPaySDK/Env.php @@ -17,7 +17,7 @@ interface Env public const TEST_URL = "https://test.bitpay.com/"; public const PROD_URL = "https://bitpay.com/"; public const BITPAY_API_VERSION = "2.0.0"; - public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.1"; + public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.2"; public const BITPAY_API_FRAME = "std"; public const BITPAY_API_FRAME_VERSION = "1.0.0"; } diff --git a/src/BitPaySDK/Util/RESTcli/RESTcli.php b/src/BitPaySDK/Util/RESTcli/RESTcli.php index 2b1d9f57..15431094 100644 --- a/src/BitPaySDK/Util/RESTcli/RESTcli.php +++ b/src/BitPaySDK/Util/RESTcli/RESTcli.php @@ -66,7 +66,7 @@ class RESTcli * @param string|null $proxy * @throws BitPayApiException */ - public function __construct(string $environment, PrivateKey $ecKey, ?string $proxy = null, ?string $platformInfo) + public function __construct(string $environment, PrivateKey $ecKey, ?string $proxy = null, ?string $platformInfo = null) { $this->ecKey = $ecKey; $this->baseUrl = $environment == Env::TEST ? Env::TEST_URL : Env::PROD_URL; From 2940f737f554c8f95049e158b2611eadc9e550a2 Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Mon, 11 Nov 2024 16:07:17 +0000 Subject: [PATCH 2/4] Update phpdoc --- docs/classes/BitPaySDK-Env.html | 4 ++-- docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/classes/BitPaySDK-Env.html b/docs/classes/BitPaySDK-Env.html index 7fce90c9..d5b01c7b 100644 --- a/docs/classes/BitPaySDK-Env.html +++ b/docs/classes/BitPaySDK-Env.html @@ -216,7 +216,7 @@

BITPAY_PLUGIN_INFO -  = "BitPay_PHP_Client_v9.1.1" +  = "BitPay_PHP_Client_v9.1.2"
@@ -371,7 +371,7 @@

public mixed BITPAY_PLUGIN_INFO - = "BitPay_PHP_Client_v9.1.1" + = "BitPay_PHP_Client_v9.1.2" diff --git a/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html b/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html index f03bf536..5215be5a 100644 --- a/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html +++ b/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html @@ -574,7 +574,7 @@

public - __construct(string $environment, PrivateKey $ecKey[, string|null $proxy = null ], string|null $platformInfo) : mixed + __construct(string $environment, PrivateKey $ecKey[, string|null $proxy = null ][, string|null $platformInfo = null ]) : mixed
@@ -606,7 +606,7 @@

Parameters
$platformInfo : string|null -
+ = null
From 30225615d002878092bd505a2cf28aa0b3bf4625 Mon Sep 17 00:00:00 2001 From: Robert Brodie Date: Mon, 11 Nov 2024 11:11:35 -0500 Subject: [PATCH 3/4] SP-1095 Update phpcs --- src/BitPaySDK/Util/RESTcli/RESTcli.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BitPaySDK/Util/RESTcli/RESTcli.php b/src/BitPaySDK/Util/RESTcli/RESTcli.php index 15431094..bd70a444 100644 --- a/src/BitPaySDK/Util/RESTcli/RESTcli.php +++ b/src/BitPaySDK/Util/RESTcli/RESTcli.php @@ -66,8 +66,12 @@ class RESTcli * @param string|null $proxy * @throws BitPayApiException */ - public function __construct(string $environment, PrivateKey $ecKey, ?string $proxy = null, ?string $platformInfo = null) - { + public function __construct( + string $environment, + PrivateKey $ecKey, + ?string $proxy = null, + ?string $platformInfo = null + ) { $this->ecKey = $ecKey; $this->baseUrl = $environment == Env::TEST ? Env::TEST_URL : Env::PROD_URL; $this->proxy = $proxy !== null ? trim($proxy) : ''; From aa18a2280faf77ee69562a374ec8a0b7c5b25270 Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Mon, 11 Nov 2024 16:12:04 +0000 Subject: [PATCH 4/4] Update phpdoc --- docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html b/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html index 5215be5a..b213651a 100644 --- a/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html +++ b/docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html @@ -647,7 +647,7 @@

@@ -726,7 +726,7 @@

@@ -816,7 +816,7 @@

@@ -880,7 +880,7 @@

@@ -930,7 +930,7 @@

@@ -1020,7 +1020,7 @@

@@ -1099,7 +1099,7 @@

@@ -1147,7 +1147,7 @@