Commit a19b8b96 authored by Taylor Otwell's avatar Taylor Otwell

tweaking the value method.

parent d91da7d8
...@@ -428,7 +428,7 @@ function class_basename($class) ...@@ -428,7 +428,7 @@ function class_basename($class)
*/ */
function value($value) function value($value)
{ {
return ($value instanceof Closure) ? call_user_func($value) : $value; return (is_callable($value) and ! is_string($value)) ? call_user_func($value) : $value;
} }
/** /**
......
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