Skip to content

Commit

Permalink
Merged in release/corrections (pull request #6)
Browse files Browse the repository at this point in the history
Release/corrections
  • Loading branch information
Anders Jenbo authored and Bushra committed Sep 30, 2020
2 parents 739f9d0 + 9d3adb1 commit a1046aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"sort-packages": true,
"bin-dir": "bin"
},
"archive": {
"exclude": [
"build.xml",
"phpstan.neon",
"phpunit.xml.dist",
"tests"
]
},
"require": {
"php": "^5.6 || ^7.0",
"ext-date": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Ecommerce/ResponseInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public function __construct($postedData)
}

/**
* @return string
* @return Address|null
*/
public function getRegisteredAddress()
{
$response = $this->call();
$registeredAddress = '';
$registeredAddress = null;
if (isset($response->Transactions[0]->CustomerInfo->RegisteredAddress)) {
$registeredAddress = $response->Transactions[0]->CustomerInfo->RegisteredAddress;
}
Expand Down

0 comments on commit a1046aa

Please sign in to comment.