We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dea002 commit 34c0cddCopy full SHA for 34c0cdd
src/Travisjryan/Twilio/Twilio.php
@@ -36,6 +36,8 @@ public function twiml($callback)
36
37
if( $callback instanceof \Closure ) {
38
call_user_func($callback, $message);
39
+ } else {
40
+ throw new \InvalidArgumentException("Callback is not valid.");
41
}
42
43
return $message->__toString();
@@ -46,5 +48,5 @@ private function getTwilio()
46
48
{
47
49
return new \Services_Twilio($this->config['sid'], $this->config['token']);
50
-
51
+
52
0 commit comments