change is_callable checks to instanceof Closure.

This commit is contained in:
Taylor Otwell
2011-08-26 00:31:18 -05:00
parent 429c9cee84
commit fb3a0df0dd
7 changed files with 8 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ class Handler {
{
if (isset($route->callback['do'])) return $route->callback['do'];
foreach ($route->callback as $value) { if (is_callable($value)) return $value; }
foreach ($route->callback as $value) { if ($value instanceof Closure) return $value; }
}
/**