Skip to content

Commit 29b9bf7

Browse files
committed
add additional checking to prevent such php error
1 parent 4271400 commit 29b9bf7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Message/CustomerResponse.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class CustomerResponse extends Response
1111
{
1212
public function getCustomerData()
1313
{
14-
return $this->data->customer;
14+
if (isset($this->data->customer)) {
15+
return $this->data->customer;
16+
}
17+
18+
return null;
1519
}
1620
}

0 commit comments

Comments
 (0)