Skip to content

Commit

Permalink
Added strict return types to string|null
Browse files Browse the repository at this point in the history
  • Loading branch information
Honza Machala committed May 10, 2017
1 parent e4e40d2 commit 84b8382
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Message/PaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public function getAuthCode()

public function getTransactionReference()
{
if (isset($this->data['payId'])) {
return $this->data['payId'];
if (isset($this->data['payId']) && !empty($this->data['payId'])) {
return (string) $this->data['payId'];
}
return null;
}


Expand Down

0 comments on commit 84b8382

Please sign in to comment.