Skip to content

Commit 6b7ef03

Browse files
authored
Merge pull request #16 from dpdconnect/1.1.8
1.1.8
2 parents 7d7941d + 283841c commit 6b7ef03

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"ext-json": "*"
3030
},
3131
"require-dev": {
32+
"phpunit/phpunit": "~6.5.0",
3233
"symfony/yaml": "^4.2",
3334
"donatj/mock-webserver": "^2.0",
3435
"overtrue/phplint": "^1.1",

src/ClientBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ClientBuilder implements ClientBuilderInterface
3636
*/
3737
public function __construct($endpoint = null, $meta = null)
3838
{
39-
$this->endpoint = 1 === preg_match('#((https?)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i', $endpoint) ? $endpoint : Client::ENDPOINT;
39+
$this->endpoint = 1 === preg_match('#((https?)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i', $endpoint ?: '') ? $endpoint : Client::ENDPOINT;
4040
$this->meta = $meta;
4141
}
4242

src/Common/ResponseError.php

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public function getErrorString()
117117
/**
118118
* @return string[]
119119
*/
120+
#[\ReturnTypeWillChange]
120121
public function jsonSerialize()
121122
{
122123
$properties = get_object_vars($this);

src/Objects/BaseObject.php

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function loadFromArray($object)
4646
/**
4747
* @return array
4848
*/
49+
#[\ReturnTypeWillChange]
4950
public function jsonSerialize()
5051
{
5152
$properties = get_object_vars($this);

0 commit comments

Comments
 (0)