barbushin/php-console

Dumper should not modify target variables

Opened this issue · 0 comments

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