Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support __debugInfo method for debugging #5

Closed
RinkAttendant6 opened this issue May 3, 2015 · 0 comments
Closed

Support __debugInfo method for debugging #5

RinkAttendant6 opened this issue May 3, 2015 · 0 comments
Assignees

Comments

@RinkAttendant6
Copy link
Owner

PHP 5.6 added a magic method called __debugInfo that returns an array upon calling var_dump on the object. This should be used in place of the debug() method in the classes.

This does not affect compatibility with older PHP versions as the __debugInfo method can be manually called (i.e. $obj->__debugInfo) and var_dump on older PHP versions will return all private, protected, and public variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant