use is_callable instead of method_exists.
This commit is contained in:
parent
09da91501d
commit
2713ee9b87
|
@ -42,7 +42,7 @@ public static function run($arguments = array())
|
||||||
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue