CustomVariableDictionary: no magic getter for equals

This commit is contained in:
Thomas Gelf 2015-11-02 09:33:22 +01:00
parent defec84ba2
commit 2e746e68c1
1 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class CustomVariableDictionary extends CustomVariable implements Countable
}
foreach ($this->value as $key => $value) {
if (! $value->equals($var->$key)) {
if (! $value->equals($var->getInternalValue($key))) {
return false;
}
}
@ -91,6 +91,11 @@ class CustomVariableDictionary extends CustomVariable implements Countable
return $this->value[$key];
}
public function getInternalValue($key)
{
return $this->value[$key];
}
public function toConfigString()
{
return c::renderDictionary($this->value);