public function __set($name, $value)
{
if ($this->isArray($value)) {
$value = new static($value);
}
if ($this->isNull($name)) {
$this->data[] = $value;
} else {
$this->data[$name] = $value;
}
// Update cache with new value
ConfigCache::setCache($this->cacheKey, $this);
}