Skip to content

Commit

Permalink
InvalidArgumentException replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Sachs committed Jun 10, 2016
1 parent 9bd2b05 commit 2b645fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jira/Api/Client/CurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public function sendRequest(
$curl = curl_init();

if ( $method == 'GET' ) {
$url .= '?' . http_build_query($data);

if ( !is_array($data) ) {
throw new \InvalidArgumentException('Data must be an array.');
}

$url .= '?' . http_build_query($data);
}

curl_setopt($curl, CURLOPT_URL, $endpoint . $url);
Expand Down

0 comments on commit 2b645fc

Please sign in to comment.