From f1452d3070a977e70c3e5584d6cdf08719419805 Mon Sep 17 00:00:00 2001 From: slavcodev Date: Thu, 28 Nov 2013 13:21:30 +0200 Subject: [PATCH] Remove extra var --- framework/yii/helpers/BaseVarDumper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/yii/helpers/BaseVarDumper.php b/framework/yii/helpers/BaseVarDumper.php index b11757b..36b739c 100644 --- a/framework/yii/helpers/BaseVarDumper.php +++ b/framework/yii/helpers/BaseVarDumper.php @@ -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);