Skip to content
Browse files

Rename unknown method to correct exception class, fix undeclared warn…

…ings for PUT method
  • Loading branch information...
1 parent 975a7bb commit 2c2da603d73db05c0289be4443c803217589934e Adam Ballai committed Jan 5, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 twilio.php
View
4 twilio.php
@@ -118,6 +118,8 @@ public function request($path, $method = "GET", $vars = array()) {
foreach($vars AS $key=>$value)
$encoded .= "$key=".urlencode($value)."&";
$encoded = substr($encoded, 0, -1);
+ $tmpfile = "";
+ $fp = null;
// construct full url
$url = "{$this->Endpoint}/$path";
@@ -154,7 +156,7 @@ public function request($path, $method = "GET", $vars = array()) {
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
break;
default:
- throw(new TestException("Unknown method $method"));
+ throw(new TwilioException("Unknown method $method"));
break;
}

0 comments on commit 2c2da60

Please sign in to comment.
Something went wrong with that request. Please try again.