Commit 0b1ddc93 by Qiang Xue

Merge pull request #1346 from slavcodev/clean-var-dumper

Remove extra var
parents 5d9cd76a f1452d30
......@@ -111,10 +111,9 @@ class BaseVarDumper
} else {
$id = array_push(self::$_objects, $var);
$className = get_class($var);
$members = (array)$var;
$spaces = str_repeat(' ', $level * 4);
self::$_output .= "$className#$id\n" . $spaces . '(';
foreach ($members as $key => $value) {
foreach ((array)$var as $key => $value) {
$keyDisplay = strtr(trim($key), ["\0" => ':']);
self::$_output .= "\n" . $spaces . " [$keyDisplay] => ";
self::dumpInternal($value, $level + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment