Skip to content

Commit

Permalink
Make 3rd argument in doRequest optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jochen-testingbot authored Jan 28, 2020
1 parent ca574a5 commit 14a4f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestingBot/TestingBotAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function deleteStorageFile($appUrl)
return $this->_doRequest("storage/" . str_replace("tb://", "", $appUrl), "DELETE");
}

private function _doRequest($path, $method = 'POST', $data)
private function _doRequest($path, $method = 'POST', $data = array())
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://api.testingbot.com/v1/" . $path);
Expand Down

0 comments on commit 14a4f10

Please sign in to comment.