tweaking the value method.

This commit is contained in:
Taylor Otwell 2012-04-18 20:53:26 -05:00
parent d91da7d80a
commit a19b8b9675
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }
/** /**