Commit 2713ee9b by Taylor Otwell

use is_callable instead of method_exists.

parent 09da9150
...@@ -42,7 +42,7 @@ class Command { ...@@ -42,7 +42,7 @@ class Command {
throw new \Exception("Sorry, I can't find that task."); throw new \Exception("Sorry, I can't find that task.");
} }
if(method_exists($task, $method) or method_exists($task, '__call')) if(is_callable(array($task, $method)))
{ {
$task->$method(array_slice($arguments, 1)); $task->$method(array_slice($arguments, 1));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment