diff --git a/laravel/cli/command.php b/laravel/cli/command.php index 6d7d6267..72cf90d2 100644 --- a/laravel/cli/command.php +++ b/laravel/cli/command.php @@ -42,7 +42,7 @@ public static function run($arguments = array()) 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)); }