Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

3 participants

@touki653

Fixed an (obviously) over used function which were calling method_exists function the wrong way.

In Doctrine\Common\Util\Debug::toString($obj)
From method_exists('__toString',$obj)
To method_exists($obj,'__toString')

@doctrinebot
Collaborator

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DCOM-125

@schmittjoh schmittjoh merged commit 20cb487 into from
@schmittjoh
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 17, 2012
  1. @touki653
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/Common/Util/Debug.php
View
2  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);
}
}
Something went wrong with that request. Please try again.