Commit 4bee6d1b by Taylor Otwell

put str_object back in.

parent 609920b0
...@@ -367,6 +367,17 @@ function str_finish($value, $cap) ...@@ -367,6 +367,17 @@ function str_finish($value, $cap)
} }
/** /**
* Determine if the given object has a toString method.
*
* @param object $value
* @return bool
*/
function str_object($value)
{
return is_object($value) and method_exists($value, '__toString');
}
/**
* Get the root namespace of a given class. * Get the root namespace of a given class.
* *
* @param string $class * @param string $class
......
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