CustomVariableDictionary: no magic getter for equals
This commit is contained in:
parent
defec84ba2
commit
2e746e68c1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue