Skip to content

Commit

Permalink
Merge pull request #204 from touki653/master
Browse files Browse the repository at this point in the history
Bad function call in Debug::toString()
  • Loading branch information
schmittjoh committed Oct 17, 2012
2 parents 7e005df + 301228e commit 20cb487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Util/Debug.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ public static function export($var, $maxDepth)
*/ */
public static function toString($obj) 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.