Skip to content

Commit

Permalink
add validation to test cases, fixed synchronous capture validation
Browse files Browse the repository at this point in the history
  • Loading branch information
has.well committed Jan 29, 2021
1 parent 10a00ec commit 328573f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function formatResult($result)
$result = ResponseHelper::jsonToArray($result);
break;
}
} else if ($this->apiVersion === '2.0') {
} else if ($this->apiVersion === '2.0' and is_string($result)) {
$result = ResponseHelper::jsonToArray($result);
}
return $result;
Expand Down

0 comments on commit 328573f

Please sign in to comment.