Permalink
Browse files

Merge pull request #204 from touki653/master

Bad function call in Debug::toString()
  • Loading branch information...
2 parents 7e005df + 301228e commit 20cb487a5809a42f03020c89fa09eb4458de827f @schmittjoh schmittjoh committed Oct 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/Common/Util/Debug.php
@@ -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);
}
}

0 comments on commit 20cb487

Please sign in to comment.