CustomVariableDictionary: always store an object

This commit is contained in:
Thomas Gelf 2015-11-01 00:57:02 +01:00
parent 0c121cf4fe
commit 9d111d0db0

View File

@ -59,9 +59,9 @@ class CustomVariableDictionary extends CustomVariable implements Countable
public function getValue()
{
$ret = array();
$ret = (object) array();
foreach ($this->value as $key => $var) {
$ret[$key] = $var->getValue();
$ret->$key = $var->getValue();
}
return $ret;