Skip to content

Commit 620fb49

Browse files
authored
Fixed a return type error. (#18)
Fixes an error when null is returned instead of a string.
1 parent edc0a3b commit 620fb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/PurchaseResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getTransactionReference(): string
6363
*/
6464
public function getMessage(): string
6565
{
66-
return $this->data['ErrorMessage'] ?? $this->data['Message'] ?? null;
66+
return $this->data['ErrorMessage'] ?? $this->data['Message'] ?? 'Something went wrong';
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)