From 2713ee9b87b687ecfa8e957ec2f7948c5d9a8bbb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 13 Feb 2012 11:06:27 -0600 Subject: [PATCH] use is_callable instead of method_exists. --- laravel/cli/command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }