Skip to content

Commit 292d560

Browse files
authored
Merge pull request #345 from bobbrodie/9.1.x
SP-1095 Default $platformInfo to null
2 parents ed58ac1 + aa18a22 commit 292d560

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

docs/classes/BitPaySDK-Env.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ <h4 id="toc-constants">
216216
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
217217
<a class="" href="classes/BitPaySDK-Env.html#constant_BITPAY_PLUGIN_INFO">BITPAY_PLUGIN_INFO</a>
218218
<span>
219-
&nbsp;= &quot;BitPay_PHP_Client_v9.1.1&quot; </span>
219+
&nbsp;= &quot;BitPay_PHP_Client_v9.1.2&quot; </span>
220220
</dt>
221221

222222
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
@@ -371,7 +371,7 @@ <h4 class="phpdocumentor-element__name" id="constant_BITPAY_PLUGIN_INFO">
371371
<span class="phpdocumentor-signature__visibility">public</span>
372372
<span class="phpdocumentor-signature__type">mixed</span>
373373
<span class="phpdocumentor-signature__name">BITPAY_PLUGIN_INFO</span>
374-
= <span class="phpdocumentor-signature__default-value">&quot;BitPay_PHP_Client_v9.1.1&quot;</span>
374+
= <span class="phpdocumentor-signature__default-value">&quot;BitPay_PHP_Client_v9.1.2&quot;</span>
375375
</code>
376376

377377

docs/classes/BitPaySDK-Util-RESTcli-RESTcli.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ <h4 class="phpdocumentor-element__name" id="method___construct">
574574

575575
<code class="phpdocumentor-code phpdocumentor-signature ">
576576
<span class="phpdocumentor-signature__visibility">public</span>
577-
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$environment</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\BitPayKeyUtils\KeyHelper\PrivateKey">PrivateKey</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ecKey</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$proxy</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$platformInfo</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
577+
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$environment</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\BitPayKeyUtils\KeyHelper\PrivateKey">PrivateKey</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ecKey</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$proxy</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$platformInfo</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
578578

579579
<div class="phpdocumentor-label-line">
580580
</div>
@@ -606,7 +606,7 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
606606
<dt class="phpdocumentor-argument-list__entry">
607607
<span class="phpdocumentor-signature__argument__name">$platformInfo</span>
608608
: <span class="phpdocumentor-signature__argument__return-type">string|null</span>
609-
</dt>
609+
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
610610
<dd class="phpdocumentor-argument-list__definition">
611611

612612
</dd>
@@ -647,7 +647,7 @@ <h4 class="phpdocumentor-element__name" id="method_delete">
647647
<aside class="phpdocumentor-element-found-in">
648648
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
649649
:
650-
<span class="phpdocumentor-element-found-in__line">250</span>
650+
<span class="phpdocumentor-element-found-in__line">254</span>
651651

652652
</aside>
653653

@@ -726,7 +726,7 @@ <h4 class="phpdocumentor-element__name" id="method_get">
726726
<aside class="phpdocumentor-element-found-in">
727727
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
728728
:
729-
<span class="phpdocumentor-element-found-in__line">187</span>
729+
<span class="phpdocumentor-element-found-in__line">191</span>
730730

731731
</aside>
732732

@@ -816,7 +816,7 @@ <h4 class="phpdocumentor-element__name" id="method_getJsonDataFromResponse">
816816
<aside class="phpdocumentor-element-found-in">
817817
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
818818
:
819-
<span class="phpdocumentor-element-found-in__line">372</span>
819+
<span class="phpdocumentor-element-found-in__line">376</span>
820820

821821
</aside>
822822

@@ -880,7 +880,7 @@ <h4 class="phpdocumentor-element__name" id="method_init">
880880
<aside class="phpdocumentor-element-found-in">
881881
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
882882
:
883-
<span class="phpdocumentor-element-found-in__line">83</span>
883+
<span class="phpdocumentor-element-found-in__line">87</span>
884884

885885
</aside>
886886

@@ -930,7 +930,7 @@ <h4 class="phpdocumentor-element__name" id="method_post">
930930
<aside class="phpdocumentor-element-found-in">
931931
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
932932
:
933-
<span class="phpdocumentor-element-found-in__line">123</span>
933+
<span class="phpdocumentor-element-found-in__line">127</span>
934934

935935
</aside>
936936

@@ -1020,7 +1020,7 @@ <h4 class="phpdocumentor-element__name" id="method_update">
10201020
<aside class="phpdocumentor-element-found-in">
10211021
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
10221022
:
1023-
<span class="phpdocumentor-element-found-in__line">315</span>
1023+
<span class="phpdocumentor-element-found-in__line">319</span>
10241024

10251025
</aside>
10261026

@@ -1099,7 +1099,7 @@ <h4 class="phpdocumentor-element__name" id="method_hasError">
10991099
<aside class="phpdocumentor-element-found-in">
11001100
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
11011101
:
1102-
<span class="phpdocumentor-element-found-in__line">409</span>
1102+
<span class="phpdocumentor-element-found-in__line">413</span>
11031103

11041104
</aside>
11051105

@@ -1147,7 +1147,7 @@ <h4 class="phpdocumentor-element__name" id="method_parseException">
11471147
<aside class="phpdocumentor-element-found-in">
11481148
<abbr class="phpdocumentor-element-found-in__file" title="src/BitPaySDK/Util/RESTcli/RESTcli.php"><a href="files/src-bitpaysdk-util-restcli-restcli.html"><abbr title="src/BitPaySDK/Util/RESTcli/RESTcli.php">RESTcli.php</abbr></a></abbr>
11491149
:
1150-
<span class="phpdocumentor-element-found-in__line">425</span>
1150+
<span class="phpdocumentor-element-found-in__line">429</span>
11511151

11521152
</aside>
11531153

phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<output>docs</output>
1111
</paths>
1212

13-
<version number="9.1.1">
13+
<version number="9.1.2">
1414
<api format="php">
1515
<source dsn=".">
1616
<path>src</path>

src/BitPaySDK/Env.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Env
1717
public const TEST_URL = "https://test.bitpay.com/";
1818
public const PROD_URL = "https://bitpay.com/";
1919
public const BITPAY_API_VERSION = "2.0.0";
20-
public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.1";
20+
public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.1.2";
2121
public const BITPAY_API_FRAME = "std";
2222
public const BITPAY_API_FRAME_VERSION = "1.0.0";
2323
}

src/BitPaySDK/Util/RESTcli/RESTcli.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ class RESTcli
6666
* @param string|null $proxy
6767
* @throws BitPayApiException
6868
*/
69-
public function __construct(string $environment, PrivateKey $ecKey, ?string $proxy = null, ?string $platformInfo)
70-
{
69+
public function __construct(
70+
string $environment,
71+
PrivateKey $ecKey,
72+
?string $proxy = null,
73+
?string $platformInfo = null
74+
) {
7175
$this->ecKey = $ecKey;
7276
$this->baseUrl = $environment == Env::TEST ? Env::TEST_URL : Env::PROD_URL;
7377
$this->proxy = $proxy !== null ? trim($proxy) : '';

0 commit comments

Comments
 (0)