Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bad function call in Debug::toString() #204

Merged
merged 1 commit into from Oct 17, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -134,6 +134,6 @@ public static function export($var, $maxDepth)
*/
public static function toString($obj)
{
- return method_exists('__toString', $obj) ? (string) $obj : get_class($obj) . '@' . spl_object_hash($obj);
+ return method_exists($obj, '__toString') ? (string) $obj : get_class($obj) . '@' . spl_object_hash($obj);
}
}