php-console icon indicating copy to clipboard operation
php-console copied to clipboard

Dumper should not modify target variables

Open Chi-teck opened this issue 7 years ago • 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

Chi-teck avatar Jan 06 '17 15:01 Chi-teck