Skip to content

Commit

Permalink
Merge pull request #99 from global-fashion/master
Browse files Browse the repository at this point in the history
fix: Undefined property: stdClass::$moreInfo
  • Loading branch information
tooyz authored Aug 6, 2021
2 parents 7ce47df + 08aba92 commit 10af07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/ApiResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($request, $response)
$error = is_array($response) ? $response[0]->errors[0] : $response->errors[0];
$this->code = $error->code;
$this->errorText = $error->error;
$this->moreInfo = $error->moreInfo;
$this->moreInfo = $error->moreInfo ?: null;
}

public function getApiCode(){
Expand Down

0 comments on commit 10af07b

Please sign in to comment.