Skip to content

Commit 328573f

Browse files
author
has.well
committed
add validation to test cases, fixed synchronous capture validation
1 parent 10a00ec commit 328573f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Result/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function formatResult($result)
8181
$result = ResponseHelper::jsonToArray($result);
8282
break;
8383
}
84-
} else if ($this->apiVersion === '2.0') {
84+
} else if ($this->apiVersion === '2.0' and is_string($result)) {
8585
$result = ResponseHelper::jsonToArray($result);
8686
}
8787
return $result;

0 commit comments

Comments
 (0)