RinkAttendant6 / JsonI18n

Simple PHP internationalization library using JSON data
Mozilla Public License 2.0
4 stars 1 forks source link

Support __debugInfo method for debugging #5

Closed RinkAttendant6 closed 9 years ago

RinkAttendant6 commented 9 years ago

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.