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.
PHP 5.6 added a magic method called
__debugInfo
that returns an array upon callingvar_dump
on the object. This should be used in place of thedebug()
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
) andvar_dump
on older PHP versions will return all private, protected, and public variables.