Commit 2713ee9b authored by Taylor Otwell's avatar Taylor Otwell

use is_callable instead of method_exists.

parent 09da9150
......@@ -42,7 +42,7 @@ class Command {
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));
}
......
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