Skip to content

Commit

Permalink
Hubtel renamed the key to for missing parameter validation reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ovac committed Mar 24, 2018
1 parent 4455755 commit 4c1f1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exception/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(ClientException $exception)
$errorCode = isset($error['ResponseCode']) ? $error['ResponseCode'] : null;
$errorType = isset($error['type']) ? $error['type'] : null;
$message = isset($error['Message']) ? $error['Message'] : null;
$missingParameter = isset($error['Error']) ? $this->getMissingParameters($error['Error']) : null;
$missingParameter = isset($error['Errors']) ? $this->getMissingParameters($error['Errors']) : null;

$exception = $this->handleException(
$message, $statusCode, $errorType, $errorCode, $missingParameter, $rawOutput
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Exception/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function test_4010_missenParameter_request_response()

$this->useResponse(400, json_encode([
'ResponseCode' => 4010,
'Error' => [
'Errors' => [
array('Field' => 'Some Field'),
array('Field' => 'Other Field'),
],
Expand Down

0 comments on commit 4c1f1d0

Please sign in to comment.