php-console
php-console copied to clipboard
Dumper should not modify target variables
Under some conditions dumper converts referenced objects to arrays.
$foo = new \stdClass();
$var['foo'] = &$foo;
\PhpConsole\Handler::getInstance()->debug($var);
echo gettype($foo); // array
See: https://www.drupal.org/node/2752825