Skip to content

Commit

Permalink
Fix tests for PHP < 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Larsson committed Jan 24, 2016
1 parent 1a7a3e5 commit 1777f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Message/PurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public function isSuccessful()

public function getTransactionReference()
{
if (!empty($location = $this->response->getHeader('location'))) {
$location = $this->response->getHeader('location');
if (!empty($location)) {
$urlParts = explode('/', $location);
return end($urlParts);
}
Expand Down

0 comments on commit 1777f55

Please sign in to comment.